/* Premium Vanilla CSS for E-Form Mahasiswa */

:root {
    --primary-color: #ea580c;
    --primary-hover: #c2410c;
    --secondary-color: #f3f4f6;
    --secondary-hover: #e5e7eb;
    --background-color: #f8fafc;
    --text-color: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

.btn-logout {
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
}

.btn-logout:hover {
    color: var(--danger);
    background: #fef2f2;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Profile Card */
.profile-card {
    text-align: center;
    padding: 2rem 1.5rem !important;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.profile-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary {
    background-color: #ffedd5;
    color: #c2410c;
}

.profile-details {
    text-align: left;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="white" stroke-opacity="0.1" stroke-width="20"/></svg>') repeat;
    background-size: 150px;
    opacity: 0.5;
    pointer-events: none;
}

.banner-text h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.banner-text p {
    color: #e0e7ff;
    font-size: 0.95rem;
    max-width: 500px;
}

.banner-illustration {
    font-size: 4rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Cards & Containers */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

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

.card-header h3 {
    font-size: 1.1rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.modern-table th,
.modern-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.modern-table th {
    background-color: #f8fafc;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #f8fafc;
}

.date-badge {
    display: flex;
    flex-direction: column;
}

.date-main {
    font-weight: 600;
    color: var(--text-color);
}

.date-sub {
    font-size: 0.75rem;
    color: var(--text-light);
}

.keperluan-cell {
    max-width: 300px;
}

.keperluan-text {
    white-space: normal;
    word-break: break-word;
    font-weight: 500;
    line-height: 1.4;
}

/* Empty State */
.modern-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.modern-empty h4 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.modern-empty p {
    color: var(--text-light);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-shadow {
    box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(234, 88, 12, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: #cbd5e1;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* NEW: Premium Login Page Styles */
.login-body {
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Left Illustration Side */
.login-illustration {
    flex: 1;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    padding: 3rem;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.illustration-content {
    position: relative;
    z-index: 10;
    max-width: 400px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.illustration-content h1 {
    color: white;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.illustration-content p {
    color: #e0e7ff;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.illustration-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.25rem;
    color: white;
}

.stat-item span {
    font-size: 0.875rem;
    color: #c7d2fe;
}

/* Decorative circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
}

/* Right Form Side */
.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--white);
}

.login-form-content {
    width: 100%;
    max-width: 380px;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-header h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.modern-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-color);
    transition: all 0.2s ease;
    background: #f8fafc;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.btn-login {
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-login:hover .btn-icon-right {
    transform: translateX(4px);
}

.btn-icon-right {
    transition: transform 0.2s ease;
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.login-footer a {
    font-weight: 600;
}

/* Forms general */
.form-card {
    max-width: 800px;
    margin: 2rem auto;
}

.form-group { margin-bottom: 1.5rem; }
.form-row { display: flex; gap: 1.5rem; }
.half-width { flex: 1; }

.input-disabled {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    cursor: not-allowed;
    border-color: #e2e8f0 !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Service Menu Cards */
.service-menu-card {
    padding: 1.5rem !important;
    background: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.menu-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.menu-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: var(--text-color);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.25s ease;
    border-radius: 0 4px 4px 0;
}

.service-menu-item:hover {
    background: #ffffff;
    transform: translateY(-2px) translateX(2px);
    border-color: rgba(234, 88, 12, 0.2);
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.08);
}

.service-menu-item:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon theme colors */
.icon-active {
    background: #f0fdf4;
    color: #16a34a;
}
.icon-cuti {
    background: #fffbeb;
    color: #d97706;
}
.icon-pindah {
    background: #eff6ff;
    color: #2563eb;
}

.service-menu-item:hover .icon-active {
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25);
}

.service-menu-item:hover .icon-cuti {
    background: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.service-menu-item:hover .icon-pindah {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.service-info strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.service-menu-item:hover .service-info strong {
    color: var(--primary-color);
}

.service-info span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
}

.service-arrow {
    color: #94a3b8;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-menu-item:hover .service-arrow {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Badge for Jenis Surat */
.badge-surat {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-surat-aktif {
    background: #f0fdf4;
    color: #15803d;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #bbf7d0;
}

.badge-surat-cuti {
    background: #fffbeb;
    color: #b45309;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #fde68a;
}

.badge-surat-pindah {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid #bfdbfe;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .banner-text p {
        margin: 0 auto;
    }

    .login-wrapper {
        flex-direction: column;
    }

    .login-illustration {
        padding: 2rem;
        min-height: 250px;
    }

    .illustration-content h1 {
        font-size: 2rem;
    }

    .login-form-container {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .nav-user .user-name {
        display: none;
    }
}

/* Premium Segmented Controls / Tabs Menu */
.tabs-container {
    display: flex;
    background: #f1f5f9;
    padding: 0.35rem;
    border-radius: 14px;
    gap: 0.25rem;
    margin-bottom: 2.25rem;
    position: relative;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn svg {
    transition: transform 0.2s ease;
    color: var(--text-light);
}

.tab-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.4);
}

.tab-btn:hover svg {
    transform: scale(1.1);
    color: var(--text-color);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
}

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

/* Form Section Styling */
.form-section {
    display: none;
    opacity: 0;
}

.form-section.active {
    display: block;
    animation: fadeInSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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