/* CSS Reset & Variables */
:root {
    --bg-gradient: linear-gradient(135deg, #0f0f12 0%, #1a0f12 50%, #150a0a 100%);
    --card-bg: rgba(26, 26, 30, 0.75);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --brand-color: #E50914;
    --brand-glow: rgba(229, 9, 20, 0.35);
    --accent-green: #30d158;
    --accent-green-glow: rgba(48, 209, 88, 0.25);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus-border: rgba(229, 9, 20, 0.6);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Background Glowing Orbs */
.glow-sphere {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.glow-1 {
    background: var(--brand-color);
    top: -50px;
    left: -50px;
    animation: floatGlow 12s infinite alternate ease-in-out;
}

.glow-2 {
    background: #ff453a;
    bottom: 50px;
    right: -50px;
    animation: floatGlow 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.2); }
}

/* Header styling */
.app-header {
    text-align: center;
    margin-top: 10px;
}

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

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
}

.admin-open-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.admin-open-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.admin-icon {
    width: 14px;
    height: 14px;
}

.logo-badge {
    background: var(--brand-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.logo-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.app-header h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #ffffff 0%, #d8d8dd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.app-header .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Premium Card Base */
.app-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 24, 0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(8px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-overlay p {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Error Box */
.error-box {
    background: rgba(255, 69, 58, 0.08);
    border: 1px solid rgba(255, 69, 58, 0.25);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.error-icon {
    font-size: 18px;
}

.error-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: #ff453a;
    margin-bottom: 2px;
}

.error-content p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.close-error-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.close-error-btn:hover {
    color: #ff453a;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

form.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    visibility: visible;
    padding: 0;
}

.form-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
}

.step-num {
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-color);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: color 0.3s;
}

/* Inputs and Selects styling */
input[type="text"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 13px 12px 13px 40px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
}

textarea {
    padding: 14px;
    resize: none;
}

/* Adjust textarea icon */
textarea + .input-icon {
    top: 14px;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

/* Hover and Focus States */
input:hover, select:hover, textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--input-focus-border);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--brand-glow);
}

input:focus + .input-icon, select:focus + .input-icon {
    color: var(--brand-color);
}

/* Date input specific styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* Duration Badge */
.duration-badge-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
}

.duration-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.duration-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-color);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

/* Submit Button */
.submit-btn {
    background: var(--brand-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px var(--brand-glow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(229, 9, 20, 0.5);
    background: #ff1e27;
}

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

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Success Panel Styling */
.success-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

.success-panel.active {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 30px var(--accent-green-glow);
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 40px;
    height: 40px;
    stroke: var(--accent-green);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 4;
    stroke-miterlimit: 10;
    stroke: var(--accent-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

.success-panel h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.success-panel p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 280px;
}

/* Preview Card */
.preview-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.preview-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.preview-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.excel-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}

.excel-preview-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.excel-preview-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    white-space: nowrap;
}

.excel-preview-table tbody tr {
    background: rgba(255, 255, 255, 0.01);
}

.excel-preview-table td.col-com {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reset Button */
.reset-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Technical info panel */
.tech-info {
    width: 100%;
}

details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

details[open] {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.08);
}

summary {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: color 0.3s;
}

summary:hover {
    color: var(--text-primary);
}

.tech-details-content {
    padding: 0 16px 16px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.tech-details-content ol {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-details-content code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    color: #fff;
}

.warning-box {
    background: rgba(229, 9, 20, 0.06);
    border-left: 3px solid var(--brand-color);
    padding: 10px;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
}

/* Helper utilities */
.hidden {
    display: none !important;
}

/* Responsive queries */
@media (max-width: 480px) {
    body {
        padding: 8px;
        align-items: flex-start;
    }
    
    .app-container {
        gap: 16px;
    }

    .app-header h1 {
        font-size: 22px;
    }

    .app-card {
        padding: 16px;
        border-radius: var(--border-radius-md);
    }

    .form-row {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 16px;
    }
}

/* Fix select dropdown options styling in dark mode */
select option {
    background-color: #1a1a1e;
    color: var(--text-primary);
}

/* Admin Modal Styles */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    transition: opacity 0.3s ease;
}

.admin-modal-content {
    background: rgba(26, 26, 30, 0.95);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.admin-close-btn:hover {
    color: #ff453a;
}

.admin-state {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.admin-state-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.admin-error {
    color: #ff453a;
    background: rgba(255, 69, 58, 0.08);
    border: 1px solid rgba(255, 69, 58, 0.2);
    border-radius: var(--border-radius-md);
    padding: 10px 12px;
    font-size: 12px;
    text-align: center;
}

/* Tabs */
.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    padding-bottom: 8px;
}

.admin-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.admin-tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.admin-tab-contents {
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 10px;
}

.tab-content {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.tab-content.active {
    display: flex;
}

.tab-content h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* List items */
.options-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
}

.option-text {
    font-size: 14px;
    color: var(--text-primary);
}

.delete-opt-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.delete-opt-btn:hover {
    color: #ff453a;
}

.add-option-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.add-option-row input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
}

.add-option-row input:focus {
    border-color: var(--input-focus-border);
    background: rgba(255, 255, 255, 0.08);
}

.add-btn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

/* Version Footer */
.version-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.version-sep {
    color: rgba(255, 255, 255, 0.15);
}

.changelog-link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

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

/* Changelog Modal Styles */
.changelog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 110;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    transition: opacity 0.3s ease;
}

.changelog-modal-content {
    background: rgba(26, 26, 30, 0.95);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.changelog-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.changelog-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.changelog-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.changelog-close-btn:hover {
    color: #ff453a;
}

.changelog-modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-modal-body h3 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.changelog-list {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.changelog-list li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
}

.changelog-list li::before {
    content: "•";
    color: var(--accent-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.changelog-history-details {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    transition: all 0.3s;
}

.changelog-history-details summary {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
}

.changelog-history-details[open] {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.08);
}

#changelogHistoryList {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    max-height: 200px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.history-version {
    color: var(--text-primary);
}

.history-date {
    color: var(--text-secondary);
    font-weight: 400;
}

.history-changes {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 4px;
}

.history-changes li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    padding-left: 12px;
}

.history-changes li::before {
    content: "-";
    color: var(--text-secondary);
    position: absolute;
    left: 0;
    top: 0;
}

.changelog-modal-footer {
    padding: 16px 24px 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* User Admin Tab Styles */
.tab-content .form-group input {
    padding: 8px 12px;
    font-size: 13px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

.tab-content .form-group input:focus {
    border-color: var(--input-focus-border);
    background: rgba(255, 255, 255, 0.08);
}

.admin-section-divider h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}


