:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --dark: #ffffff;
    --light: #f8fafc;
    --accent: #0ea5e9;
    --danger: #ef4444;
    --success: #10b981;
    --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.85);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, .brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Header */
.main-header {
    position: relative;
    padding: 60px 40px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: url('it_service_hero_1778627997117.png') center/cover no-repeat;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-name {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.brand-divider {
    color: var(--text-muted);
}

.service-name {
    color: var(--text-muted);
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.main-header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.itil-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Tab Content */
.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

.section-header {
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header p {
    color: var(--text-muted);
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.survey-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.survey-table th {
    background: rgba(0, 0, 0, 0.03);
    padding: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.survey-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.topic {
    font-weight: 700;
    color: var(--text-main);
    width: 200px;
}

.survey-table td:nth-child(2) {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 350px;
}

.form-control, input[type="text"], input[type="email"], input[type="number"], input[type="password"], select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-main);
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

select option {
    background: #ffffff;
    color: var(--text-main);
    padding: 10px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
}

.file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.file-upload:hover span {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
    color: var(--text-main);
}

/* Footer Actions */
.app-footer {
    margin-top: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

button.primary-btn, button.secondary-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.secondary-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-muted);
}

.app-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Layout Classes */
.form-layout {
    display: flex; 
    gap: 30px; 
    align-items: flex-start;
}

.sidebar-nav {
    width: 320px; 
    flex-shrink: 0; 
    position: sticky; 
    top: 20px;
}

.main-content {
    flex: 1; 
    min-width: 0;
}

.question-body {
    display: grid; 
    grid-template-columns: 3fr 2fr; 
    gap: 30px;
}

.comments-section {
    border-left: 1px solid var(--border); 
    padding-left: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .form-layout {
        flex-direction: column;
    }
    .sidebar-nav {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    .tabs-nav {
        flex-wrap: wrap;
    }
    .tab-btn {
        flex: 1 1 30%;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 30px 20px !important;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .logo-container {
        flex-wrap: wrap;
    }
    .main-header h1 {
        font-size: 2rem;
    }
    .page-header-unified {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .kpi-cards {
        grid-template-columns: 1fr !important;
    }
    .question-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .comments-section {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 20px;
        margin-top: 10px;
    }
    .footer-actions {
        flex-direction: column;
    }
    .footer-actions button {
        width: 100%;
    }
    .status-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .survey-table th, .survey-table td {
        padding: 12px 10px;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 10px;
    }
    .question-card {
        padding: 20px !important;
    }
}
