* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --background-color: #111111;
    --text-color: #ffffff;
    --accent-color: #69f0ae;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --primary: #4CAF50;
    --primary-dark: #45a049;
    --secondary: #64ffda;
    --accent: #69f0ae;
    --success: #4CAF50;
    --danger: #f87171;
    --warning: #fbbf24;
    --dark: #111111;
    --dark-light: #1a1a1a;
    --gray: #64748b;
    --gray-light: #2a2a2a;
    --bg: #111111;
    --bg-light: #0a0a0a;
    --bg-card: #1a1a1a;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgvar(--background-color);
    color: var(--text-color 240, 174, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .top-section {
        grid-template-columns: 1fr;
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    /* background: var(--bg-card); */
    /* border: 2px solid var(--border); */
    /* border-top: 3px solid var(--primary); */
    /* border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow); */
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.subtitle {
    font-size: 1.1em;
    color: var(--text-muted);
}

.domain-input-section {
    background: var(--bg-card);
    padding: 20px;
    border: 2px solid var(--border);
    /* border-left: 3px solid var(--primary); */
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.domain-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--text);
}

.input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.input-group input {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.95em;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.hint {
    font-size: 0.9em;
    color: var(--text-muted);
    font-style: italic;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
    background: var(--dark-light);
    color: var(--text);
}

.btn-primary:hover, .btn-secondary:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    border: 2px solid var(--border);
    /* border-left: 3px solid var(--primary); */
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    background: var(--text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Courier New', monospace;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-top: 5px;
}

.filters-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .filters-row {
        grid-template-columns: 1fr;
    }
}

.filters-section {
    background: var(--bg-card);
    padding: 20px;
    border: 2px solid var(--border);
    /* border-left: 3px solid var(--primary); */
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.filter-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.95em;
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95em;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text);
    padding: 10px;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group h3 {
    margin-bottom: 15px;
    color: var(--text);
    font-size: 1.2em;
    font-family: inherit;
}

.search-section {
    margin-bottom: 30px;
}

.search-section input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text);
    transition: all 0.3s;
    font-family: inherit;
}

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

.search-section input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.dorks-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 15px;
}

@media (max-width: 1400px) {
    .dorks-container {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
}

@media (max-width: 992px) {
    .dorks-container {
        grid-template-columns: 1fr;
    }
}

.dork-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--border);
    /* border-left: 4px solid var(--primary); */
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dork-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 8px var(--shadow);
    transform: translateY(-2px);
}

.dork-card.last-searched {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    background: rgba(76, 175, 80, 0.05);
}

.dork-card.last-searched::before {
    content: "Last Searched";
    position: absolute;
    top: -10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    z-index: 1;
}

.dork-card.hidden {
    display: none;
}

.dork-content {
    flex: 1;
}

.dork-title {
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 8px;
    color: var(--text);
}

.dork-query {
    background: var(--bg);
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text);
    word-break: break-all;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.dork-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    background: var(--bg);
    border-radius: 4px;
    font-size: 0.8em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-family: inherit;
}

.tag.tech {
    background: rgba(105, 240, 174, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.tag.vuln {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.dork-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.btn-copy, .btn-search {
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
    background: var(--dark-light);
    color: var(--text);
}

.btn-copy:hover, .btn-search:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    color: var(--text-muted);
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    border-radius: 8px;
}

footer p {
    margin: 5px 0;
    font-family: inherit;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    color: var(--text);
    padding: 15px 25px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 10000;
    font-weight: 600;
    font-family: inherit;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .input-group {
        flex-direction: column;
    }

    .dork-card {
        flex-direction: column;
    }

    .dork-actions {
        width: 100%;
        flex-direction: row;
    }

    .btn-copy, .btn-search {
        flex: 1;
    }
}
