/* Custom CSS untuk TugasCollector */
:root {
    --primary-color: #4e73df;
    --primary-hover: #224abe;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-bg: #f8f9fc;
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.dashboard-compact .card-body {
    padding: 1rem !important;
}

.dashboard-compact .card-header {
    padding: 0.9rem 1rem !important;
}

.activity-chart {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 190px;
    margin-top: 0.25rem;
    padding: 0.5rem 0.25rem 0;
}

.activity-bar-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.activity-bar-wrapper {
    width: 100%;
    max-width: 52px;
    height: 120px;
    background: linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
    border-radius: 999px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 0.35rem;
    overflow: hidden;
}

.activity-bar-fill {
    width: 100%;
    min-height: 10%;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: inset 0 -2px 8px rgba(255, 255, 255, 0.18);
}

.activity-bar-item small {
    color: #64748b;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.activity-bar-item strong {
    font-size: 0.72rem;
    color: #1e293b;
}

@media (max-width: 991.98px) {
    .admin-layout {
        flex-direction: column;
        min-height: unset;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        border-radius: 1rem;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-nav-item {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .dashboard-compact .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .dashboard-compact .card {
        border-radius: 1rem !important;
    }

    .dashboard-compact .card-body {
        padding: 0.8rem !important;
    }

    .dashboard-compact .card-header {
        padding: 0.8rem 0.9rem !important;
    }

    .dashboard-compact h1,
    .dashboard-compact h2,
    .dashboard-compact h3,
    .dashboard-compact h4,
    .dashboard-compact h5,
    .dashboard-compact h6 {
        line-height: 1.3;
    }

    .admin-shell {
        padding: 0.65rem;
        border-radius: 1rem;
    }

    .admin-layout {
        gap: 0.7rem;
    }

    .admin-sidebar {
        padding: 0.8rem 0.7rem;
    }

    .admin-sidebar-brand {
        padding: 0.2rem 0.25rem 0.85rem;
    }

    .admin-nav {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .admin-nav-item {
        justify-content: flex-start;
        padding: 0.7rem 0.75rem;
        border-radius: 0.8rem;
        text-align: left;
    }

    .user-mini-card {
        padding: 0.6rem 0.65rem;
    }

    .admin-content {
        padding: 0.25rem 0.1rem 0.2rem;
    }

    .activity-chart {
        gap: 0.4rem;
        min-height: 150px;
    }

    .activity-bar-wrapper {
        height: 90px;
        max-width: 42px;
    }

    .activity-bar-item small {
        font-size: 0.62rem;
    }

    .activity-bar-item strong {
        font-size: 0.65rem;
    }
}

.hero-section {
    background: linear-gradient(135deg, #0b1f5b 0%, #123d8a 40%, #1d4ed8 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 30%);
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.hero-title {
    letter-spacing: -0.04em;
    line-height: 1.1;
    max-width: 700px;
}

.hero-copy {
    max-width: 640px;
    color: rgba(255,255,255,0.82) !important;
}

.premium-stats {
    max-width: 640px;
}

.premium-stat-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem;
    padding: 0.9rem 0.8rem;
    backdrop-filter: blur(6px);
    text-align: center;
}

.stat-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.76);
    margin-top: 0.2rem;
}

.section-kicker {
    letter-spacing: 0.16em;
    font-size: 0.78rem;
}

.section-title {
    font-size: clamp(2rem, 2.5vw, 3rem);
    margin-bottom: 0.6rem;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    border-radius: 1.25rem;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;
}

.role-panel {
    border-radius: 1.1rem;
}

.premium-cta {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 30%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 22px 50px rgba(29, 78, 216, 0.25);
}

body {
    background: radial-gradient(circle at top left, #edf4ff 0%, #f8fafc 35%, #eef2f7 100%);
    color: #1f2937;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.admin-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.5rem;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.admin-layout {
    display: flex;
    min-height: 760px;
    gap: 0;
    background: #f4f7fb;
}

.admin-sidebar {
    display: none;
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.5rem 0.9rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.35);
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.admin-sidebar-brand small {
    color: rgba(255,255,255,0.68);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.3rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.8rem;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.admin-nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.admin-nav-item i {
    width: 18px;
    text-align: center;
    opacity: 0.95;
}

.admin-sidebar-footer {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.user-mini-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.8rem;
    padding: 0.7rem 0.7rem;
}

.avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
}

.user-mini-card strong,
.user-mini-card small {
    display: block;
    color: #fff;
}

.user-mini-card strong {
    font-size: 0.92rem;
}

.user-mini-card small {
    color: rgba(255,255,255,0.68);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.67rem;
}

.admin-content {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 1.4rem 1.4rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

.full-width-admin-content {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
}

.page-toolbar {
    position: relative;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.2rem;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 65%);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    margin: 0 0 1.25rem;
}

.page-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4f46e5;
    margin-bottom: 0.35rem;
}

.page-toolbar h1 {
    letter-spacing: -0.03em;
}

.dashboard-compact .card {
    border-radius: 1.1rem !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-compact .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.09) !important;
}

.dashboard-compact .card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12) !important;
    background: rgba(248, 250, 252, 0.88) !important;
}

.dashboard-compact .btn {
    border-radius: 0.85rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-compact .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.12);
}

.dashboard-compact .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.dashboard-compact .btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.35);
    color: #334155;
}

.dashboard-compact .table {
    border-collapse: separate;
    border-spacing: 0;
    border: none !important;
}

.dashboard-compact .table thead th {
    background: transparent;
    color: #334155;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none !important;
    padding-bottom: 0.6rem;
}

.dashboard-compact .table td,
.dashboard-compact .table th {
    border: none !important;
    vertical-align: middle;
}

.dashboard-compact .table tbody tr {
    transition: background-color 0.15s ease;
}

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

/* Navbar Custom */
.navbar-custom {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
    transition: all 0.2s ease-in-out;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: #ffffff;
    padding: 5rem 0 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--light-bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-visual {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 440px);
    max-width: 100%;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-visual svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }

    .hero-visual {
        margin: 0 auto;
    }
}

/* Stat Cards */
.card-stat {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 0.35rem solid !important;
}

.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.card-stat-primary {
    border-left-color: var(--primary-color) !important;
}

.card-stat-success {
    border-left-color: var(--success-color) !important;
}

.card-stat-info {
    border-left-color: var(--info-color) !important;
}

.card-stat-warning {
    border-left-color: var(--warning-color) !important;
}

.card-stat-danger {
    border-left-color: var(--danger-color) !important;
}

/* Feature Cards & Hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.75rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Status Badges */
.badge-status-submitted {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-status-late {
    background-color: #f8d7da;
    color: #721c24;
}

.badge-status-graded {
    background-color: #d4edda;
    color: #155724;
}

.badge-status-returned {
    background-color: #fff3cd;
    color: #856404;
}

/* Upload Dropzone Styling */
.upload-dropzone {
    border: 2px dashed #b7b9cc;
    border-radius: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--primary-color);
    background-color: #eaecf4;
}

/* Notification unread style */
.notification-item.unread {
    background-color: #e8f0fe !important;
    border-left: 4px solid var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    border-radius: 50rem;
}

/* Kelas Badges */
.badge-kelas {
    background-color: #e2e8f0;
    color: #334155;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.35rem;
    border: 1px solid #cbd5e1;
    display: inline-block;
    margin: 2px;
}

/* Table styling */
.table-custom {
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.table-custom th {
    background-color: #f8f9fc;
    color: #4e73df;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e3e6f0;
}

.settings-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(78, 115, 223, 0.10);
    border: 1px solid rgba(78, 115, 223, 0.15);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.settings-pill-muted {
    background: rgba(133, 135, 150, 0.08);
    border-color: rgba(133, 135, 150, 0.15);
    color: var(--secondary-color);
}

.settings-card {
    border-radius: 1rem !important;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.settings-section-title {
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e3e6f0;
    padding: 1.5rem 0;
    color: #858796;
    font-size: 0.875rem;
}

@media (max-width: 576px) {
    .dashboard-compact .row.g-3 > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .container-fluid.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-brand {
        gap: 0.7rem;
    }

    .brand-badge {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .brand-title {
        font-size: 0.92rem;
    }

    .alert {
        padding: 0.7rem 0.9rem;
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }

    .alert .btn-close {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .card-body.p-4,
    .card-body.p-3,
    .card-body.p-2 {
        padding: 1rem !important;
    }

    .card .card-body .h2,
    .card .card-body h2,
    .card .card-body .h3,
    .card .card-body h3,
    .card .card-body .h4,
    .card .card-body h4 {
        font-size: 1.2rem;
    }

    .btn,
    .btn-sm,
    .btn-lg {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
}
