* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sidebar styles */
.sidebar {
    width: 250px;
    background: #2c5a4a;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    z-index: 1000;
}

/* Main content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Container */
.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Form styles */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

button {
    padding: 10px 20px;
    background: #1a3c34;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #2c5a4a;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background: #1a3c34;
    color: white;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    width: 85%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 15px 20px;
    background: #1a3c34;
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #ff9800;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
    text-align: right;
    border-top: 1px solid #ddd;
}

/* Detail Table Styles */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.detail-table tr:hover {
    background: #f9f9f9;
}

.detail-table td:first-child {
    font-weight: bold;
    width: 35%;
    background: #f5f5f5;
}

/* History Table Styles */
.history-table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.history-table tr:hover {
    background: #f3e5f5;
}

/* Loader Animation */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a3c34;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .detail-table td:first-child {
        width: 40%;
    }
    
    .history-table {
        font-size: 11px;
    }
    
    .history-table th, 
    .history-table td {
        padding: 6px;
    }
}
.pagination a {
    padding: 8px 12px;
    background: #1a3c34;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background: #2c5a4a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
}

/* Header */
.header {
    background: #1a3c34;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
}

.header .user-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header a {
    color: white;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #2c5a4a;
    color: white;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #1a3c34;
}

.sidebar a:hover {
    background: #1a3c34;
}

/* Main content */
.main-content {
    margin-left: 250px;
    padding: 20px;
}

/* Container */
.container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Forms */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    padding: 10px 20px;
    background: #1a3c34;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #2c5a4a;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background: #1a3c34;
    color: white;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

/* Search section */
.search-section {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    padding: 8px 12px;
    background: #1a3c34;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background: #2c5a4a;
}

/* Action buttons */
.edit-btn {
    background: #ff9800;
}

.pick-btn {
    background: #2196f3;
}

.delete-btn {
    background: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    .main-content {
        margin-left: 0;
    }
    form {
        flex-direction: column;
    }
    table {
        display: block;
        overflow-x: auto;
    }
}