/* Custom styles for the application */

/* General styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar styles */
.sidebar {
    background-color: #6a1b9a;
    min-height: 100vh;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding-top: 56px; /* Tinggi navbar */
    width: 250px;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.8);
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: #4a148c;
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Content styles */
.content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 70px; /* Agar tidak tertutup navbar */
    transition: all 0.3s;
}

/* Card styles */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    margin-bottom: 20px;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 6px 8px rgba(0,0,0,.15);
}

.card-header {
    background-color: #6a1b9a;
    color: white;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
    padding: 15px;
}

/* Button styles */
.btn-primary {
    background-color: #9c27b0;
    border-color: #9c27b0;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #6a1b9a;
    border-color: #6a1b9a;
}

.btn-success {
    background-color: #4caf50;
    border-color: #4caf50;
}

.btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
}

.btn-danger {
    background-color: #f44336;
    border-color: #f44336;
}

/* Table styles */
.table th {
    background-color: #f3e5f5;
    color: #4a148c;
}

.table-hover tbody tr:hover {
    background-color: #f3e5f5;
}

/* Form styles */
.form-control:focus {
    border-color: #9c27b0;
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

.custom-select:focus {
    border-color: #9c27b0;
    box-shadow: 0 0 0 0.2rem rgba(156, 39, 176, 0.25);
}

/* Badge styles */
.badge-primary {
    background-color: #9c27b0;
}

.badge-success {
    background-color: #4caf50;
}

.badge-warning {
    background-color: #ff9800;
}

.badge-danger {
    background-color: #f44336;
}

.badge-info {
    background-color: #00bcd4;
}

/* Stat card styles */
.stat-card {
    border-radius: 10px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.primary {
    background-color: #6a1b9a;
}

.stat-card.secondary {
    background-color: #9c27b0;
}

.stat-card.accent {
    background-color: #ba68c8;
}

.stat-card.dark {
    background-color: #4a148c;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.stat-card p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        padding-top: 0;
        height: auto;
    }
    
    .content {
        margin-left: 0;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Alert styles */
.alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
    border: none;
}

.modal-header {
    background-color: #6a1b9a;
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-footer {
    border-top: none;
}

/* Footer admin styles */
.footer {
    background-color: #6a1b9a;
    color: white;
    padding: 20px 0;
    margin-top: 30px;
    margin-left: 500px; /* Agar tidak tertutup sidebar */
}

/* Footer Utama styles */
.footer_utama {
    background-color: #6a1b9a;
    color: white;
    padding: 20px 0;
    margin-top: 30px;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #6a1b9a;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Print styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .content {
        margin-left: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}




