:root {
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --bg-color: #0B0F1A;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(192, 132, 252, 0.15) 0%, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4rem);
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}

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

main {
    flex: 1;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.05);
}

.upload-icon {
    margin-bottom: 1rem;
}

.browse-btn {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.file-name {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--success);
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background-color: rgba(15, 23, 42, 0.8);
}

.action-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    filter: brightness(1.1);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.secondary-btn {
    padding: 0.5rem 1rem;
    background: var(--glass);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.secondary-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Results */
#results-area {
    margin-top: 2rem;
}

#results-area h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

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

#share-link-container {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

#share-link-container p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.share-input-group {
    display: flex;
    gap: 0.5rem;
}

.share-input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: var(--primary);
    font-family: monospace;
    font-size: 0.875rem;
}

.share-input-group button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.share-input-group button:hover {
    background: var(--primary-hover);
}

.finding-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary);
}

.finding-card.High {
    border-left-color: var(--danger);
}

.finding-card.Medium {
    border-left-color: var(--warning);
}

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

.finding-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.severity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
}

.severity-badge.High {
    background-color: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.severity-badge.Medium {
    background-color: rgba(245, 158, 11, 0.2);
    color: #FCD34D;
}

.finding-detail {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.finding-detail strong {
    color: var(--text-main);
}

.code-block {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    margin: 0.5rem 0 1rem;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.soft-sell {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom right, rgba(79, 70, 229, 0.1), rgba(192, 132, 252, 0.1));
    border-radius: 1rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.soft-sell h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.soft-sell a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.soft-sell a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

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

footer a:hover {
    color: var(--primary);
}

/* Roadmap */
.roadmap-container {
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.roadmap-list {
    display: grid;
    gap: 1.5rem;
}

.roadmap-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.roadmap-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.roadmap-item.must-have {
    border-left: 4px solid var(--danger);
}

.roadmap-item.high-value {
    border-left: 4px solid var(--success);
}

.roadmap-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-weight: 600;
}

.roadmap-item.must-have .roadmap-badge {
    background-color: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.roadmap-item.high-value .roadmap-badge {
    background-color: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

.roadmap-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.1rem;
    padding-right: 6rem;
    /* Space for badge */
}

.roadmap-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Release Notes */
.release-notes-container {
    max-width: 800px;
    margin: 0 auto;
}

.release-entry {
    border-left: 2px solid var(--border);
    padding-left: 2rem;
    margin-left: 1rem;
    padding-bottom: 2rem;
    position: relative;
}

.release-entry::before {
    content: '';
    position: absolute;
    left: -0.4rem;
    top: 0;
    width: 0.8rem;
    height: 0.8rem;
    background-color: var(--primary);
    border-radius: 50%;
    border: 2px solid var(--card-bg);
}

.release-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.release-header .version {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.release-header .date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.release-list {
    list-style: none;
}

.release-list li {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.release-list li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Loading */
.hidden {
    display: none;
}

#loading {
    text-align: center;
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal Guide */
.terminal-guide {
    text-align: center;
    padding: 1rem 0;
}

.terminal-guide h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.terminal-guide p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.code-block-wrapper {
    background-color: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 0 auto 2.5rem;
    max-width: 600px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--border);
}

.code-header span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: var(--primary-hover);
}

.code-block-wrapper pre {
    padding: 1.5rem;
    margin: 0;
    text-align: left;
    overflow-x: auto;
}

.code-block-wrapper code {
    font-family: 'Fira Code', monospace;
    color: #A5B4FC;
    font-size: 0.95rem;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.step p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-main);
}

.step code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    color: var(--primary);
}

/* Scanner badge */
.scanner-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: rgba(79, 70, 229, 0.2);
    color: #A5B4FC;
    border: 1px solid rgba(79, 70, 229, 0.3);
    margin-left: 0.5rem;
}

/* Summary card */
.summary-card {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card h3 {
    margin-bottom: 1rem;
    color: var(--success);
}

.summary-card p {
    margin: 0.5rem 0;
    color: var(--text-main);
}

/* Help text */
.help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Select styling */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: var(--primary);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

select option {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 0.5rem;
}

select option:disabled {
    color: var(--text-muted);
    font-style: italic;
}

/* Occurrences list styling */
.occurrences-list {
    margin: 1rem 0;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
}

.occurrence-item {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary);
}

.occurrence-item strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.occurrence-item .code-block {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
/* Feedback Modal Styles */
.text-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.text-link-btn:hover {
    color: var(--primary);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

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

.modal-header h2 {
    font-size: 1.75rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.rating-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    font-size: 2rem;
}

.star {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.star:hover,
.star.active {
    color: var(--warning);
    transform: scale(1.1);
}

.feedback-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(15, 23, 42, 0.8);
}
