/* Styles */
:root {
    --primary-color: #8826f9;
    --secondary-color: #11111b;
    --text-color: #cdd6f4;
    --border-color: #cdd6f4;
    --button-hover: #6c2bd9;
    --button-secondary: #181825;
    --button-secondary-hover: #1e1e2e;
    --success-color: #40a02b;
    --error-color: #d20f39;
    --warning-color: #fe640b;
    --info-color: #1e66f5;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Particles.js background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--secondary-color);
}

.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Modern Tools Layout */
.tools-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.header-caption {
    font-size: 28px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#tool-search {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#tool-search:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(136, 38, 249, 0.3);
}

#tool-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.search-results-count {
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-results-count.visible {
    opacity: 1;
}

/* Modern Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0;
}

.tool-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #9d5afa, #6b3cd4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(136, 38, 249, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(136, 38, 249, 0.2);
}

.tool-info {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
}

.tool-info a {
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.tool-info h3 {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-family: 'Share Tech Mono', monospace;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-info h3 {
    color: var(--primary-color);
}

.tool-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.tool-info code {
    background-color: rgba(136, 38, 249, 0.2);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
}

/* Hidden state for search */
.tool-card.hidden {
    display: none;
}

/* Empty state */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Share Tech Mono', monospace;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results .icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.no-results p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 15px;
    }

    .header-caption {
        font-size: 24px;
    }

    .search-container {
        max-width: 100%;
    }

    #tool-search {
        padding: 12px 45px 12px 15px;
        font-size: 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tool-card {
        padding: 20px;
    }

    .tool-info h3 {
        font-size: 18px;
    }

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

@media (max-width: 480px) {
    .tool-container {
        padding: 10px;
    }

    .header-caption {
        font-size: 20px;
        line-height: 1.3;
    }

    .tool-card {
        padding: 15px;
        border-radius: 12px;
    }

    .tool-info h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .tool-info p {
        font-size: 13px;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 4px;
}

.logo img:hover {
    opacity: 1;
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 4px 16px rgba(136, 38, 249, 0.3);
    background-color: rgba(136, 38, 249, 0.1);
}

header h1 {
    flex: 1 0 auto;
    margin: 0;
    padding: 0 20px;
    font-size: 28px;
    text-align: center;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), #9d5afa);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

nav a:hover {
    opacity: 1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(136, 38, 249, 0.3);
}

nav a:hover::before {
    opacity: 1;
}

main {
    padding: 20px 0;
}

/* Live Encode toggle styling */
.live-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    color: #cdd6f4;
    margin-left: 12px;
    cursor: pointer;
    user-select: none;
}

.live-toggle input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #8826f9;
    background-color: #11111b;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.live-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #cdd6f4;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
}

.live-toggle input[type="checkbox"]:checked {
    background-color: #8826f9;
    border-color: #8826f9;
}

.live-toggle input[type="checkbox"]:checked::after {
    opacity: 1;
}

.live-mode-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    font-size: 0.95em;
}

.result-item {
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.result-item.vulnerable {
    background-color: #34141a;
    border-left: 4px solid #f38ba8;
}

.result-item.partial {
    background-color: #1f1d30;
    border-left: 4px solid #f9e2af;
}

.result-item.safe {
    background-color: #1a1a1a;
    border-left: 4px solid #a6e3a1;
}

.highlight {
    color: #f38ba8;
    font-weight: bold;
}


#live-mode-select {
    background-color: var(--button-secondary);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 6px 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#live-mode-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}




.tool-description {
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tool-panel {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.input-section,
.output-section,
.secret-key-section {
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
}


h2,
h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 18px;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    resize: vertical;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(136, 38, 249, 0.3);
    transform: translateY(0);
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(136, 38, 249, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(136, 38, 249, 0.4);
}

.action-btn.secondary {
    background-color: var(--button-secondary);
    box-shadow: 0 4px 12px rgba(24, 24, 37, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn.secondary:hover {
    background-color: var(--button-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 24, 37, 0.5);
    border-color: var(--primary-color);
}

.action-btn:disabled,
.action-btn.disabled {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

.action-btn:disabled:hover,
.action-btn.disabled:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.action-btn:disabled::before,
.action-btn.disabled::before {
    display: none;
}

/* Button variants */
.action-btn.success {
    background-color: var(--success-color);
    box-shadow: 0 4px 12px rgba(64, 160, 43, 0.3);
}

.action-btn.success:hover {
    background-color: #2f7d20;
    box-shadow: 0 8px 20px rgba(64, 160, 43, 0.4);
}

.action-btn.danger {
    background-color: var(--error-color);
    box-shadow: 0 4px 12px rgba(210, 15, 57, 0.3);
}

.action-btn.danger:hover {
    background-color: #a00d2e;
    box-shadow: 0 8px 20px rgba(210, 15, 57, 0.4);
}

.action-btn.warning {
    background-color: var(--warning-color);
    box-shadow: 0 4px 12px rgba(254, 100, 11, 0.3);
}

.action-btn.warning:hover {
    background-color: #d14309;
    box-shadow: 0 8px 20px rgba(254, 100, 11, 0.4);
}

.action-btn.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.action-btn.outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(136, 38, 249, 0.4);
}

/* Tabs */
.output-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    position: relative;
    margin-right: 4px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(136, 38, 249, 0.1), rgba(157, 90, 250, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px 6px 0 0;
}

.tab-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    background-color: rgba(136, 38, 249, 0.1);
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn.active {
    opacity: 1;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(136, 38, 249, 0.15);
    box-shadow: 0 -2px 8px rgba(136, 38, 249, 0.2);
}

.tab-btn.active::before {
    opacity: 0;
}

.tab-pane {
    display: none;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.tab-pane.active {
    display: block;
}

.json-output {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
}

.signature-output {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 4px;
    font-family: 'Share Tech Mono', monospace;
}

.token-info {
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
}

.token-status {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.token-status.valid {
    color: var(--success-color);
}

.token-status.invalid {
    color: var(--error-color);
}

.token-status.expired {
    color: var(--warning-color);
}

.token-expiry {
    font-size: 16px;
}

.tool-info {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.tool-info h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.tool-info ul {
    padding-left: 20px;
}

.tool-info li {
    margin-bottom: 8px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Subdomain Takeover Tool Styles */
.vulnerability-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid currentColor;
}

.vulnerability-badge.high {
    background-color: rgba(243, 139, 168, 0.1);
    border-color: #f38ba8;
}

.vulnerability-badge.medium {
    background-color: rgba(250, 179, 135, 0.1);
    border-color: #fab387;
}

.vulnerability-badge.low {
    background-color: rgba(166, 227, 161, 0.1);
    border-color: #a6e3a1;
}

.status-group {
    margin: 20px 0;
}

.status-header {
    font-size: 1.2em;
    font-weight: bold;
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
}

.status-header.vulnerable {
    color: #f38ba8;
    border-bottom-color: #f38ba8;
}

.status-header.timeout {
    color: #fab387;
    border-bottom-color: #fab387;
}

.status-header.not_found {
    color: #89b4fa;
    border-bottom-color: #89b4fa;
}

.status-header.error {
    color: #f38ba8;
    border-bottom-color: #f38ba8;
}

.status-header.safe {
    color: #a6e3a1;
    border-bottom-color: #a6e3a1;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background-color: var(--button-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(136, 38, 249, 0.15);
}

.result-card.vulnerable {
    border-left: 4px solid #f38ba8;
}

.result-card.timeout {
    border-left: 4px solid #fab387;
}

.result-card.not_found {
    border-left: 4px solid #89b4fa;
}

.result-card.error {
    border-left: 4px solid #f38ba8;
}

.result-card.safe {
    border-left: 4px solid #a6e3a1;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-header h5 {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-color);
    word-break: break-all;
}

.result-details {
    font-size: 0.9em;
    line-height: 1.4;
}

.result-details p {
    margin: 5px 0;
}

.result-details strong {
    color: var(--primary-color);
}

.evidence,
.recommendations {
    margin: 10px 0;
}

.evidence ul,
.recommendations ul {
    margin: 5px 0;
    padding-left: 20px;
}

.evidence li,
.recommendations li {
    margin: 3px 0;
}

.timestamp {
    font-size: 0.8em;
    color: #6c7086;
    margin-top: 10px;
    font-style: italic;
}

.results-summary {
    background-color: var(--button-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.results-summary h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-number.vulnerable {
    color: #f38ba8;
}

.stat-number.safe {
    color: #a6e3a1;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #6c7086;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-header h5 {
        margin-bottom: 10px;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

.notification.warning {
    background-color: var(--warning-color);
}

.notification.info {
    background-color: var(--info-color);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        margin: 15px 0;
    }

    nav ul {
        margin-top: 15px;
    }

    .actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .action-btn:hover {
        transform: translateY(-1px);
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tab-btn:hover {
        transform: none;
    }

    .output-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid var(--border-color);
        text-align: left;
        padding: 15px;
    }

    .tab-btn.active {
        border-left: 2px solid var(--primary-color);
        border-bottom: 1px solid var(--border-color);
    }
}

/* Highlight JSON syntax */
.key {
    color: var(--primary-color);
}

.string {
    color: var(--success-color);
}

.number {
    color: var(--info-color);
}

.boolean {
    color: var(--warning-color);
}

.null {
    color: var(--error-color);
}

/* JavaScript Secrets Finder specific styles */
.input-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.input-container {
    display: none;
}

.input-container.active {
    display: block;
}

.input-container h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.input-container input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-container input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
}

.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.results-content {
    margin-top: 20px;
}

.results-summary {
    padding: 20px;
    background-color: rgba(136, 38, 249, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.results-summary h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 40px;
    background-color: rgba(64, 160, 43, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.no-results h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

.severity-group {
    margin-bottom: 30px;
}

.severity-header {
    padding: 15px;
    margin: 0 0 15px 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

.findings-list {
    margin-left: 20px;
}

.finding-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.finding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.finding-type {
    font-weight: bold;
    color: var(--primary-color);
}

.finding-line {
    font-size: 14px;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.finding-value {
    margin-bottom: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow-x: auto;
}

.finding-value code {
    color: var(--warning-color);
    font-family: 'Share Tech Mono', monospace;
    word-break: break-all;
}

.finding-context details {
    margin-top: 5px;
}

.finding-context summary {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 14px;
}

.finding-context pre {
    margin: 10px 0 0 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.info-item {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.info-item h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.info-item p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.placeholder {
    text-align: center;
    opacity: 0.7;
    padding: 40px;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-tabs {
        flex-direction: column;
    }

    .finding-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .findings-list {
        margin-left: 0;
    }
}

/* HTTP Headers Analyzer specific styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.options {
    margin: 15px 0;
}

.analysis-summary {
    background-color: rgba(136, 38, 249, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.score-card {
    text-align: center;
    margin-bottom: 15px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.score-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
}

.score-grade {
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
}

.status-group {
    margin-bottom: 25px;
}

.status-header {
    padding: 12px 15px;
    margin: 0 0 15px 0;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-left: 15px;
}

.finding-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    transition: transform 0.2s ease;
}

.finding-card:hover {
    transform: translateY(-2px);
}

.finding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.finding-header h5 {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.finding-score {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.finding-description {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.finding-details {
    font-size: 13px;
}

.finding-details code {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Share Tech Mono', monospace;
    color: var(--warning-color);
    word-break: break-all;
}

.issues {
    margin: 10px 0;
}

.issues ul {
    margin: 5px 0;
    padding-left: 20px;
}

.issues li {
    margin: 3px 0;
    color: var(--error-color);
}

.recommendation {
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(30, 102, 245, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--info-color);
}

.multi-analysis-summary {
    background-color: rgba(136, 38, 249, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.url-result {
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.url-result.error {
    border-left: 4px solid var(--error-color);
}

.url-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.url-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 16px;
}

.url-score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-score .score-number {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.url-score .score-grade {
    font-size: 14px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.vulnerable {
    background-color: rgba(243, 139, 168, 0.2);
    color: var(--error-color);
}

.status-badge.missing {
    background-color: rgba(250, 179, 135, 0.2);
    color: var(--warning-color);
}

.status-badge.warning {
    background-color: rgba(249, 226, 175, 0.2);
    color: var(--warning-color);
}

.status-badge.secure {
    background-color: rgba(166, 227, 161, 0.2);
    color: var(--success-color);
}

.status-badge.info {
    background-color: rgba(137, 180, 250, 0.2);
    color: var(--info-color);
}

.error-result {
    text-align: center;
    padding: 40px;
    background-color: rgba(243, 139, 168, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--error-color);
}

.error-result h3 {
    color: var(--error-color);
    margin-bottom: 15px;
}

/* Responsive adjustments for headers analyzer */
@media (max-width: 768px) {
    .findings-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .url-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .score-display {
        flex-direction: column;
        gap: 5px;
    }

    .status-counts {
        flex-direction: column;
        gap: 5px;
    }
}