/* Add these styles to your existing style.css file */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
 --bg-primary: #0a1c2e;
--bg-secondary: #051121;
--bg-gradient: linear-gradient(to bottom, var(--bg-primary) 0%, #000000 100%);
--text-primary: #ffffff;
--text-secondary: rgba(255, 255, 255, 0.7);
--text-muted: rgba(255, 255, 255, 0.5);
--accent-color: #3b82f6;
--accent-hover: #2563eb;
--border-color: rgba(255, 255, 255, 0.1);
--input-bg: rgba(0, 0, 0, 0.2);
--card-bg: rgba(0, 0, 0, 0.2);
--success-color: #10b981;
--warning-color: #f59e0b;
--danger-color: #ef4444;
--info-color: #3b82f6;
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 1.5rem;
    height: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

nav ul li a:hover {
    opacity: 1;
}

.nav-button {
    background-color: var(--accent-color);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.nav-button:hover {
    background-color: var(--accent-hover);
    color: #000;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

/* Hero section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem 0;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 0.25rem;
    background-color: var(--accent-color);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search section */
.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    border-radius: 0.375rem;
    overflow: hidden;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
}

.search-type-wrapper {
    position: relative;
    min-width: 140px;
    border-right: 1px solid var(--border-color);
}

.search-type {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.search-type-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-button {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.search-button:hover {
    background-color: var(--accent-hover);
}

.search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-limit-info {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Search results */
.search-results {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto 0;
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.source-section {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.source-title {
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.source-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

.source-data {
    padding: 0;
}

.data-item {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.data-item:first-child {
    border-top: none;
}

.data-row {
    display: flex;
    margin-bottom: 0.5rem;
}

.data-row:last-child {
    margin-bottom: 0;
}

.data-label {
    width: 150px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.data-value {
    flex: 1;
    word-break: break-all;
}

/* Forms */
.form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 0.9rem;
}

.form-input:focus {
    border-color: var(--accent-color);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-checkbox input {
    cursor: pointer;
}

.form-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.form-button:hover {
    background-color: var(--accent-hover);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--accent-color);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info-color);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* Account and history */
.account-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.history-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

.history-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-query {
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
footer {
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-links h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links ul li a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Admin styles */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-section {
    background-color: var(--card-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.admin-section-title {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-table-container {
    padding: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.admin-table td {
    font-size: 0.9rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-section-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.admin-link {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.admin-actions {
    margin-top: 2rem;
    text-align: center;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.admin-button:hover {
    background-color: var(--accent-hover);
}

.copy-button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background-color: var(--accent-color);
    color: #000;
}

.delete-button {
    color: var(--danger-color);
}

.disabled-action {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-stats,
    .admin-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-primary);
        flex-direction: column;
        padding: 1rem 0;
        gap: 1rem;
        display: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav ul.active {
        display: flex;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    .search-type-wrapper {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .admin-stats,
    .admin-sections {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .data-row {
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    .data-label {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Cursor animation */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent-color);
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Add these styles to your existing style.css file */

/* Search Tips */
.search-tips {
  margin-top: 1rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-tip-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
}

.search-tip-toggle i {
  margin-right: 0.5rem;
}

.search-tip-content {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 0 1rem;
  margin-top: 0.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.search-tip-content.active {
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.search-tip-content h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.search-tip-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.search-tip-content li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-tip-content strong {
  color: var(--text-color);
}

/* Password breach display */
.password-info {
  margin-top: 1rem;
  padding: 1rem;
  background-color: rgba(var(--danger-rgb), 0.1);
  border-radius: 6px;
  border-left: 3px solid var(--danger-color);
}

.password-info h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--danger-color);
  display: flex;
  align-items: center;
}

.password-info h4 i {
  margin-right: 0.5rem;
}

.password-info p {
  margin-bottom: 0.5rem;
}

.password-info code {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

.password-info .warning {
  font-size: 0.85rem;
  color: var(--danger-color);
  margin-top: 0.5rem;
}

/* Provider Selection */
.provider-selection {
  margin-top: 1rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.provider-selection label {
  font-weight: 500;
  color: var(--text-color);
}

.breach-provider {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.breach-provider:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Error section styling */
.error-section {
  opacity: 0.7;
}

.error-message {
  color: var(--danger-color);
  padding: 1rem;
  background: rgba(var(--danger-rgb), 0.1);
  border-radius: 4px;
}

/* Nested objects styling */
.nested-object {
  margin-top: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.nested-row {
  display: flex;
  margin-bottom: 4px;
}

.nested-label {
  font-size: 0.85em;
  color: var(--text-muted);
  width: 120px;
  flex-shrink: 0;
}

.nested-value {
  font-size: 0.85em;
}

/* Log items styling */
.log-item {
  margin-bottom: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

/* Social profile styling */
.social-profile {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.social-profile i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.social-profile a {
  color: var(--primary-color);
  text-decoration: none;
}

.social-profile a:hover {
  text-decoration: underline;
}

/* Raw data content */
.raw-data-content {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Logs list */
.logs-list {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
