@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --primary: #0C8B73; /* Warna hijau toska khas EMIS */
    --primary-dark: #096b58;
    --primary-light: #E6F3F0;
    --background: #F4F7F6;
    --surface: #FFFFFF;
    --text-main: #333333;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* AUTH LAYOUT */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    background: radial-gradient(circle at 30% 50%, #00b09b, #0C8B73);
    position: relative;
    overflow: hidden;
}
.auth-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border: 40px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px;
    left: -200px;
}
.auth-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border: 20px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
}

.auth-card {
    background: var(--surface);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 10;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}
.auth-header h1 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    font-weight: 700;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 2rem;
}

.login-input {
    background-color: #F3F4F6;
    border-radius: 30px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #D1D5DB;
}
.login-input:focus {
    background-color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 139, 115, 0.15);
}
.login-btn {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* TOP HEADER */
.top-header {
    background-color: var(--surface);
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.top-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.top-header .user-profile {
    display: flex;
    align-items: center;
    text-align: right;
}
.user-profile strong {
    display: block;
    color: var(--text-main);
    font-size: 14px;
}
.user-profile span {
    font-size: 12px;
    color: var(--primary);
}

/* DASHBOARD LAYOUT */
.dashboard-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 65px);
}

/* SIDEBAR */
.sidebar {
    width: 260px;
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-info {
    margin: 1.25rem 1rem 0.5rem 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 13px;
    line-height: 2;
    border-bottom: none;
}
.sidebar-info div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.25rem;
    margin-bottom: 0.25rem;
}
.sidebar-info div:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.sidebar-info strong {
    color: white;
}

.sidebar-nav {
    padding: 1rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    border-radius: 20px; /* Rounded pill style */
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    font-size: 14px;
}

.nav-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background-color: var(--surface);
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.breadcrumb {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 14px;
}
.page-title {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* CARDS */
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.card-hero {
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-hero h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}
.card-hero p {
    color: rgba(255,255,255,0.8);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #F8FAF9;
    border: 1px solid #E2E8E5;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* TABLES & FORMS */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    background-color: #F8FAF9;
    font-weight: 600;
    color: var(--text-muted);
}

tr:hover {
    background-color: #F9FAFB;
}

.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.form-control {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 12px;
}
.btn-danger {
    background-color: var(--danger);
    color: white;
}
.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 14px;
}
.alert-danger { background-color: #FEE2E2; color: #991B1B; border: 1px solid #F87171; }
.alert-success { background-color: #D1FAE5; color: #065F46; border: 1px solid #34D399; }
