/* Reset dan basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: #ecf0f1;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.sidebar-logo {
    margin-bottom: 10px;
}

.sidebar-logo img {
    max-width: 120px;
    height: auto;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    position: relative;
}

.menu-item a {
    display: block;
    padding: 12px 20px;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item a:hover {
    background-color: #34495e;
}

.menu-item.active a {
    background-color: #34495e;
    border-left: 4px solid #3498db;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Content area */
.content {
    flex: 1;
    background-color: #f5f5f5;
    overflow-y: auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-name {
    margin-right: 15px;
    font-weight: 500;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.dropdown-btn i {
    margin-left: 5px;
}

/* Main content */
main {
    padding: 30px;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

h2 {
    margin: 15px 0;
    color: #2c3e50;
}

/* Dashboard statistics */
.dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.stat-icon.blue {
    background-color: #3498db;
}

.stat-icon.green {
    background-color: #2ecc71;
}

.stat-icon.orange {
    background-color: #f39c12;
}

.stat-content h3 {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Recent activity table */
.recent-activity {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.activity-container {
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

.activity-table th, .activity-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.activity-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.activity-table tr:last-child td {
    border-bottom: none;
}

.text-center {
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Forms */
.form-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.btn, button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* Tables */
.data-table-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.data-table tr:hover {
    background-color: #f5f5f5;
}

.data-table .actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    min-width: 130px;
    max-width: 140px;
    white-space: nowrap;
}

/* Filter section */
.filter-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

.pagination .active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d5f5e3;
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.alert-danger {
    background-color: #fadbd8;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.alert-warning {
    background-color: #fef9e7;
    color: #d35400;
    border-left: 4px solid #f39c12;
}

.alert-info {
    background-color: #ebf5fb;
    color: #2980b9;
    border-left: 4px solid #3498db;
}

/* Login page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.login-logo {
    margin-bottom: 15px;
}

.login-logo img {
    max-width: 100px;
    height: auto;
}

.login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.login-box h2 {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.login-box .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .content {
        order: 1;
    }
    
    header {
        padding: 15px;
    }
    
    main {
        padding: 15px;
    }
    
    .dashboard-stats {
        flex-direction: column;
    }
    
    .form-col {
        flex: 100%;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* Highlights for changed data */
.highlight {
    background-color: #fffacd;
}

/* History details */
.history-details {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.history-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.history-item:last-child {
    border-bottom: none;
}

.history-field {
    font-weight: 500;
}

.history-change {
    display: flex;
    margin-top: 5px;
}

.history-old, .history-new {
    flex: 1;
    padding: 0 10px;
}

.history-old {
    color: #e74c3c;
    text-decoration: line-through;
}

.history-new {
    color: #2ecc71;
}

/* Tambahan styling untuk halaman detail */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.detail-section {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-column {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
}

.detail-column.full-width {
    flex: 100%;
}

.detail-group {
    margin-bottom: 15px;
}

.detail-group label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.detail-value {
    padding: 8px 0;
    color: #2c3e50;
}

.breadcrumb {
    margin-bottom: 20px;
    padding: 8px 0;
    color: #7f8c8d;
}