/* ====================================
   Modern UMU Internship System Design
   ==================================== */

:root {
    --primary-red: #C41E3A;
    --primary-dark: #A01A2F;
    --bg-light: #F5F6F8;
    --bg-white: #FFFFFF;
    --text-dark: #1A2332;
    --text-muted: #6B7E99;
    --border-color: #E1E5EB;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --color-blue: #4A90E2;
    --color-green: #52C084;
    --color-purple: #9B6DD0;
    --color-orange: #F5A623;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ==================
   AUTH PAGE LAYOUT
   ================== */

.auth-container {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/images/ocean.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--card-shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 48px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
    padding: 4px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.form-checkbox input {
    cursor: pointer;
}

.form-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.form-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================
   MAIN PAGE LAYOUT
   ================== */

.main-container {
    display: flex;
    min-height: 100vh;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--primary-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand-text h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.brand-text p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
}

.user-role {
    font-size: 12px;
    opacity: 0.9;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 260px;
    height: calc(100vh - 70px);
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 999;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(196, 30, 58, 0.1) 0%, transparent 100%);
    color: var(--primary-red);
    border-left-color: var(--primary-red);
}

.sidebar-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-section-title {
    padding: 16px 20px 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.sidebar-submenu {
    list-style: none;
    padding-left: 0;
}

.sidebar-submenu .sidebar-link {
    padding-left: 40px;
    font-size: 13px;
}

/* MAIN CONTENT */
.main-content {
    margin-top: 70px;
    margin-left: 260px;
    flex: 1;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* PAGE HEADER */
.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* DASHBOARD GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 210px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-lg);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card-blue .stat-card-icon {
    background: linear-gradient(135deg, var(--color-blue) 0%, #357ABD 100%);
    color: white;
}

.stat-card-green .stat-card-icon {
    background: linear-gradient(135deg, var(--color-green) 0%, #3D9A5F 100%);
    color: white;
}

.stat-card-purple .stat-card-icon {
    background: linear-gradient(135deg, var(--color-purple) 0%, #7B4FA3 100%);
    color: white;
}

.stat-card-orange .stat-card-icon {
    background: linear-gradient(135deg, var(--color-orange) 0%, #D9862D 100%);
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    line-height: 1.1;
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
    min-height: 38px;
}

.stat-subtext {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.35;
    min-height: 32px;
}

/* CONTENT CARD */
.content-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 10px;
}

/* QUICK ACTION TILES */
.quick-action-tile {
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    min-height: 142px;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.quick-action-tile:hover {
    background: #edf1f6;
    border-color: var(--border-color);
    box-shadow: 0 8px 18px rgba(26, 35, 50, 0.08);
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.quick-action-title {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.quick-action-desc {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

/* BUTTONS */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* TABLE */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .menu-toggle {
        display: block;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 22px;
    }

    .header-right {
        gap: 10px;
    }

    .user-role {
        display: none;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
    }

    .header {
        padding: 0 15px;
    }

    .brand-text h2 {
        font-size: 16px;
    }

    .page-title {
        font-size: 20px;
    }
}
