/* assets/user.css */

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8fafc;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 20px;

}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

h2 {
    color: #1e293b;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 15px;
}

.table thead {
    background-color: #3b82f6;
    color: white;
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid #9dcf6d;
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background-color: #9ace77;
}

.table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.table tbody tr:hover {
    background-color: #f1f5f9;
}

a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
}

a:hover {
    color: #2563eb;
    background-color: #89ce80;
}

a[onclick] {
    color: #ef4444;
}

a[onclick]:hover {
    color: #dc2626;
    background-color: #fef2f2;
}

em {
    color: #64748b;
    font-style: normal;
}

.back-buttun {
    margin-top: 30px;
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3b82f6;
    color: white;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #2563eb;
    color: white;
    text-decoration: none;
}

/* Flash messages styling */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table th, 
    .table td {
        padding: 10px 12px;
    }
}

/* Animation for table rows */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.table tbody tr {
    animation: fadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.table tbody tr:nth-child(n+4) { animation-delay: 0.4s; }