@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0f2b5c;
    --primary-hover: #061530;
    --primary-light: #eef5ff;
    --secondary: #d4af37;
    --secondary-hover: #bda030;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --bg-gradient: linear-gradient(135deg, #f3f7fc 0%, #eef3fb 50%, #f9f5eb 100%);
    --bg-dark-gradient: linear-gradient(135deg, #070e1b 0%, #0c182b 50%, #1e190b 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(212, 175, 55, 0.18);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-white: #ffffff;
    --border-color: #cbd5e1;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --score-1: #ef4444;
    --score-2: #f59e0b;
    --score-3: #10b981;
    --score-4: #059669;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 43, 92, 0.06), 0 2px 8px -3px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 12px 30px -4px rgba(15, 43, 92, 0.1), 0 6px 14px -6px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -10px rgba(15, 43, 92, 0.15), 0 0 25px -5px rgba(212, 175, 55, 0.04);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 43, 92, 0.03);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 43, 92, 0.2);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 43, 92, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Drifting Glow Orbs */
body::before {
    content: "";
    position: fixed;
    top: -10vw;
    left: -10vw;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.07) 0%, rgba(255,255,255,0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

body::after {
    content: "";
    position: fixed;
    bottom: -15vw;
    right: -15vw;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, rgba(15, 43, 92, 0.06) 0%, rgba(255,255,255,0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: drift 30s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Elements */
.glass-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(212, 175, 55, 0.25);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 1.5rem;
    }
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Survey Wrapper */
.survey-wrapper {
    max-width: 720px;
    margin: 1rem auto;
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .survey-wrapper {
        margin: 3rem auto;
        padding: 2.5rem;
    }
}

.survey-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .survey-header {
        margin-bottom: 2.5rem;
    }
}

.logo-container img, .logo-container svg {
    height: 70px;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 8px rgba(15, 43, 92, 0.15));
    transition: var(--transition-normal);
}

@media (min-width: 640px) {
    .logo-container img, .logo-container svg {
        height: 90px;
        margin-bottom: 1rem;
    }
}

.logo-container img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.survey-title {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .survey-title {
        font-size: 1.75rem;
    }
}

.survey-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (min-width: 640px) {
    .survey-subtitle {
        font-size: 0.95rem;
    }
}

/* Progress Tracker */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(15, 43, 92, 0.08);
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 10%;
    transition: var(--transition-normal);
}

.step-indicator {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: -1.25rem;
    margin-bottom: 1.25rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    color: var(--text-main);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.02);
    background: #ffffff;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Rating Question Cards */
.question-text {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-main);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 640px) {
    .question-text {
        font-size: 1.2rem;
        margin-bottom: 1.75rem;
    }
}

.rating-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.rating-card {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.rating-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.95);
}

.rating-card.selected {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px) scale(1.01);
}

.rating-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    margin-right: 1rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.rating-card:hover .rating-number {
    background: var(--primary);
    color: var(--text-white);
}

.rating-card.selected .rating-number {
    background: var(--primary);
    color: var(--text-white);
}

/* Custom Rating State Colors */
.rating-card.selected[data-value="1"] .rating-number { background: var(--score-1); }
.rating-card.selected[data-value="2"] .rating-number { background: var(--score-2); }
.rating-card.selected[data-value="3"] .rating-number { background: var(--score-3); }
.rating-card.selected[data-value="4"] .rating-number { background: var(--score-4); }

.rating-card.selected[data-value="1"] { border-color: var(--score-1); background: rgba(239, 68, 68, 0.05); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15); }
.rating-card.selected[data-value="2"] { border-color: var(--score-2); background: rgba(245, 158, 11, 0.05); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15); }
.rating-card.selected[data-value="3"] { border-color: var(--score-3); background: rgba(16, 185, 129, 0.05); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15); }
.rating-card.selected[data-value="4"] { border-color: var(--score-4); background: rgba(5, 150, 105, 0.05); box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15); }

.rating-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.3;
}

/* Button & Action Styles */
.btn-container {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-normal);
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Liquid Sheen Hover Shimmer Effect */
.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(15, 43, 92, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 43, 92, 0.3);
    border-color: var(--secondary);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Success Card Screen */
.success-card {
    text-align: center;
    padding: 1.5rem 0;
}

.success-icon-container {
    width: 70px;
    height: 70px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    margin: 0 auto 1.25rem auto;
    font-size: 2.2rem;
    animation: scaleIn var(--transition-slow);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.wizard-step {
    display: none;
    animation: fadeInUp var(--transition-normal);
}

.wizard-step.active {
    display: block;
}

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

/* Checkbox Customization styling */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    background: #fff;
}

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

input[type="checkbox"]:checked::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Admin Dashboard Navbar */
.admin-navbar {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid rgba(212, 175, 55, 0.2);
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    color: var(--text-white);
}

@media (min-width: 640px) {
    .admin-navbar {
        padding: 1rem 2rem;
    }
}

.admin-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.admin-logo span {
    color: var(--secondary);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .admin-user-info {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

.admin-user-badge {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Admin Layout Grid */
.admin-main {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 0.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .admin-main {
        grid-template-columns: 240px 1fr;
        margin: 2rem auto;
        padding: 0 1.5rem;
        gap: 2rem;
    }
}

/* Sidebar Menu Tabs responsive scrollable */
.admin-sidebar {
    height: fit-content;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    padding: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

.sidebar-menu::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

@media (min-width: 1024px) {
    .sidebar-menu {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem;
        overflow-x: visible;
        white-space: normal;
    }
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

@media (min-width: 1024px) {
    .sidebar-item a {
        gap: 0.75rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

.sidebar-item a:hover {
    background: rgba(15, 43, 92, 0.06);
    color: var(--primary);
}

.sidebar-item.active a {
    background: var(--primary);
    color: var(--text-white);
    border-left: 4px solid var(--secondary);
    box-shadow: 0 4px 10px rgba(15, 43, 92, 0.15);
}

/* Panel Header */
.dashboard-title-section {
    margin-bottom: 1.25rem;
}

.dashboard-title-section h1 {
    font-size: 1.4rem;
    color: #0f172a;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .dashboard-title-section h1 {
        font-size: 2rem;
    }
}

.dashboard-title-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.admin-panel-content {
    display: none;
}

.admin-panel-content.active {
    display: block;
    animation: fadeInUp var(--transition-normal);
}

/* Stats Cards Grid responsive */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.stat-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .stat-card {
        padding: 1.5rem;
    }
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .stat-card-header {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

.stat-card-icon {
    font-size: 1.1rem;
    color: var(--primary);
}

@media (min-width: 640px) {
    .stat-card-icon {
        font-size: 1.5rem;
    }
}

.stat-card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .stat-card-value {
        font-size: 2.2rem;
    }
}

.stat-card-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

@media (min-width: 640px) {
    .stat-card-desc {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
}

.stat-card.badge-a { border-left: 4px solid var(--success); }
.stat-card.badge-b { border-left: 4px solid var(--info); }
.stat-card.badge-c { border-left: 4px solid var(--warning); }
.stat-card.badge-d { border-left: 4px solid var(--danger); }

/* Dashboard Charts Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

.chart-card {
    padding: 1rem;
    min-height: 320px;
}

@media (min-width: 640px) {
    .chart-card {
        padding: 1.5rem;
        min-height: 380px;
    }
}

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

@media (min-width: 640px) {
    .chart-card-header {
        margin-bottom: 1.5rem;
    }
}

.chart-card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .chart-card-title {
        font-size: 1.1rem;
    }
}

.score-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.circular-gauge {
    position: relative;
    width: 130px;
    height: 130px;
}

.circular-gauge svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    fill: none;
    stroke: rgba(15, 43, 92, 0.08);
    stroke-width: 12;
}

.gauge-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset var(--transition-slow);
    filter: drop-shadow(0 2px 4px rgba(15, 43, 92, 0.15));
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.gauge-val {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.gauge-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Tables and Filters */
.table-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

@media (min-width: 640px) {
    .table-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

.table-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .table-filter-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
}

.filter-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 768px) {
    .filter-controls {
        width: auto;
    }
}

.filter-controls .form-control {
    width: 100%;
}

@media (min-width: 640px) {
    .filter-controls .form-control {
        width: auto;
    }
}

/* Table Wrapper for Horizontal Scrolling on Handphones */
.table-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.85rem;
    white-space: nowrap; /* Forces table to not squish, but rather scroll */
}

.data-table th {
    padding: 0.8rem 1rem;
    background: rgba(241, 245, 249, 0.95);
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(15, 43, 92, 0.02);
}

/* Badges styling */
.badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

.badge-gender {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-gender.L { background: #e0f2fe; color: #0369a1; }
.badge-gender.P { background: #fce7f3; color: #be185d; }

/* Login Page Styling */
.login-wrapper {
    max-width: 100%;
    width: 400px;
    margin: 3rem auto;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .login-wrapper {
        margin: 6rem auto;
        padding: 2.5rem;
    }
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 95%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition-normal);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .modal-container {
        width: 90%;
        padding: 2rem;
    }
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .modal-title {
        font-size: 1.25rem;
    }
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .modal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.admin-card {
    padding: 1rem;
}

@media (min-width: 640px) {
    .admin-card {
        padding: 1.5rem;
    }
}

.admin-card-large {
    padding: 1.25rem;
}

@media (min-width: 640px) {
    .admin-card-large {
        padding: 2rem;
    }
}

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

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

/* Notification Toasts */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    background: #0f172a;
    color: var(--text-white);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-normal);
}

@media (min-width: 640px) {
    .toast {
        left: auto;
        width: 380px;
        bottom: 2rem;
        right: 2rem;
    }
}

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

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }

/* Official Report Print Layout */
.report-paper {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    color: #000000;
    border-radius: var(--radius-sm);
}

@media (min-width: 640px) {
    .report-paper {
        padding: 3rem;
    }
}

.report-header {
    text-align: center;
    border-bottom: 2px double #000000;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.report-org-name {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .report-org-name {
        font-size: 1.45rem;
    }
}

.report-title {
    font-size: 1.05rem;
    margin: 0.4rem 0;
    text-transform: uppercase;
    font-weight: 700;
}

@media (min-width: 640px) {
    .report-title {
        font-size: 1.2rem;
    }
}

.report-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

@media (min-width: 640px) {
    .report-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        font-size: 0.95rem;
    }
}

.report-summary-box {
    border: 1px solid #000000;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    background: #f8fafc;
}

@media (min-width: 640px) {
    .report-summary-box {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        padding: 1.2rem;
        gap: 0;
    }
}

.report-summary-item {
    padding: 0.5rem 0;
}

.report-summary-num {
    font-size: 1.5rem;
    font-weight: 800;
}

@media (min-width: 640px) {
    .report-summary-num {
        font-size: 1.85rem;
    }
}

.report-summary-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #475569;
}

.report-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1.5px solid #000000;
    padding-bottom: 0.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

@media (min-width: 640px) {
    .report-section-title {
        font-size: 1.1rem;
    }
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.report-table th, .report-table td {
    border: 1px solid #000000;
    padding: 0.5rem 0.7rem;
}

.report-table th {
    background: #f1f5f9;
    text-align: center;
    font-weight: 700;
}

.report-signatures {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

@media (min-width: 640px) {
    .report-signatures {
        justify-content: flex-end;
        margin-top: 3rem;
    }
}

.signature-block {
    text-align: center;
    width: 280px;
}

.signature-space {
    height: 60px;
}

.signature-name {
    font-weight: 700;
    text-decoration: underline;
}

/* Print Stylesheet Overrides */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
    }
    
    .admin-navbar, 
    .admin-sidebar,
    .dashboard-title-section,
    .btn-container,
    .table-filter-bar,
    .btn,
    footer,
    .no-print {
        display: none !important;
    }
    
    .admin-main {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .admin-panel-content {
        display: none !important;
    }
    
    .admin-panel-content#panel-report {
        display: block !important;
    }
    
    .report-paper {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    @page {
        size: A4;
        margin: 1.5cm;
    }
}

/* Responsive Overrides for Mobile Viewports */
@media (max-width: 1024px) {
    .admin-sidebar {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        margin: 0 0 0.5rem 0 !important;
        padding: 0 !important;
    }
    .sidebar-menu {
        background: var(--card-bg);
        backdrop-filter: blur(12px);
        border: 1px solid var(--card-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: 0.4rem !important;
    }
    .admin-sidebar > div {
        display: none !important;
    }
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .charts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.kinerja-val {
    font-size: 1.15rem;
    word-wrap: break-word;
    padding-top: 0.5rem;
    font-weight: 700;
}

@media (min-width: 640px) {
    .kinerja-val {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .report-paper {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    .report-meta-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .report-meta-grid > div:last-child {
        text-align: left !important;
    }
    .report-summary-box {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }
    .report-summary-item {
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding-bottom: 0.5rem;
    }
    .report-summary-item:last-child {
        border-bottom: none;
    }
    .report-signatures {
        justify-content: center !important;
    }
    
    /* Responsive Global Filter Bar Form elements stacking */
    .glass-container form {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .glass-container form > div {
        width: 100% !important;
        max-width: 100% !important;
    }
    .glass-container form select.form-control,
    .glass-container form input.form-control {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
    .glass-container form div[style*="margin-left: auto"] {
        width: 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
        margin-top: 0.5rem !important;
        align-self: stretch !important;
    }
    .glass-container form div[style*="margin-left: auto"] > a,
    .glass-container form div[style*="margin-left: auto"] > button {
        flex: 1 !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {
    .logo-text-desktop {
        display: none !important;
    }
    .btn-text-desktop {
        display: none !important;
    }
    .admin-navbar .btn-secondary {
        padding: 0.4rem 0.6rem !important;
    }
}

