:root {
    --primary: #0e64a3;
    --secondary: #f7941e;
    --tertiary: #25aae1;
}

/* Common Styles */
body {
    background-color: #f8f9fa;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 150px;  /* Mengubah dari 200px menjadi 150px */
    height: auto;
}

/* Dashboard Layout Styles */
.dashboard-layout {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #0a4c7c 0%, var(--primary) 100%);
    min-height: 100vh;
    width: 220px;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.content-wrapper {
    margin-left: 220px;
    transition: all 0.3s ease;
    width: calc(100% - 220px);
}

/* Collapsed state */
body.sidebar-collapsed .sidebar {
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .content-wrapper {
    margin-left: 0;
    width: 100%;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin: 1rem 0 2rem 0;
    padding: 1rem 0.5rem;
    position: relative;
}

.logo-container img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-container:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
}

/* Navigation */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

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

.sidebar .nav-link.active {
    background-color: var(--secondary);
    color: white;
}

/* Toggle button */
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: var(--secondary);
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Content Area */
.main-content {
    padding: 2rem;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0d5892;
    border-color: #0d5892;
}

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

.btn-secondary:hover {
    background-color: #e88a1b;
    border-color: #e88a1b;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(14, 100, 163, 0.05);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--tertiary);
    box-shadow: 0 0 0 0.25rem rgba(37, 170, 225, 0.25);
}