/* assets/css/style.css */
:root {
    --primary-red: #dc3545;
    --primary-gray: #6c757d;
    --dark-gray: #343a40;
    --light-gray: #f8f9fa;
    --btn-green: #28a745;
    --btn-blue: #007bff;
    --sidebar-width: 250px;
}
/* Drag and Drop Styles */
.jadwal-cell.drag-over {
    background-color: #e8f5e9 !important;
    border: 2px dashed #4CAF50 !important;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.jadwal-item[draggable="true"] {
    cursor: move;
    transition: opacity 0.3s ease;
}

.jadwal-item[draggable="true"]:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

/* Notification Info Style */
.notification.info {
    background: #2196F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--primary-gray) 100%);
    color: white;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #c82333 100%);
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(220, 53, 69, 0.2);
    color: white;
    border-left-color: var(--primary-red);
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 20px;
    min-height: 100vh;
}

/* Top Navigation */
.top-navbar {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-navbar h4 {
    margin: 0;
    color: var(--dark-gray);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-gray) 0%, var(--dark-gray) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Stat Cards */
.stat-card {
    padding: 20px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.stat-card.red {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c82333 100%);
}

.stat-card.gray {
    background: linear-gradient(135deg, var(--primary-gray) 0%, var(--dark-gray) 100%);
}

.stat-card.green {
    background: linear-gradient(135deg, var(--btn-green) 0%, #218838 100%);
}

.stat-card.blue {
    background: linear-gradient(135deg, var(--btn-blue) 0%, #0056b3 100%);
}

.stat-card h3 {
    font-size: 32px;
    margin: 10px 0;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-green {
    background: var(--btn-green);
    color: white;
}

.btn-green:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-blue {
    background: var(--btn-blue);
    color: white;
}

.btn-blue:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-red {
    background: var(--primary-red);
    color: white;
}

.btn-red:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-gray {
    background: var(--primary-gray);
    color: white;
}

.btn-gray:hover {
    background: var(--dark-gray);
}

.btn-sm {
    padding: 5px 15px;
    font-size: 14px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: var(--primary-gray);
    color: white;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background: #f8f9fa;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-gray);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-gray) 0%, var(--dark-gray) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Jadwal Grid */
.jadwal-grid {
    display: grid;
    grid-template-columns: 100px repeat(6, 1fr);
    gap: 1px;
    background: #ddd;
    border: 1px solid #ddd;
}

.jadwal-cell {
    background: white;
    padding: 10px;
    min-height: 80px;
}

.jadwal-header {
    background: var(--primary-gray);
    color: white;
    font-weight: bold;
    text-align: center;
}

.jadwal-item {
    background: var(--light-gray);
    padding: 8px;
    margin: 5px 0;
    border-radius: 5px;
    border-left: 3px solid var(--primary-red);
    cursor: pointer;
    transition: all 0.3s;
}

.jadwal-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* Alert */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--btn-green);
    color: white;
}

.badge-danger {
    background: var(--primary-red);
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-info {
    background: var(--btn-blue);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}
