/* public/assets/css/public.css - Styles for public pages */

:root {
    --primary-color: #4F46E5;
    --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --bg-light: #F8FAFC;
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-light);
    min-height: 100vh;
}

.font-heading {
    font-family: 'Mitr', sans-serif;
}

/* Navbar */
.navbar-brand {
    font-family: 'Mitr', sans-serif;
}

.nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Cards */
.card-custom {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Mitr', sans-serif;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 0.875rem;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%) !important;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%) !important;
}

/* Progress bar */
.progress-custom {
    height: 10px;
    border-radius: 10px;
    background-color: #E2E8F0;
}

.progress-custom .progress-bar {
    border-radius: 10px;
}

/* Table */
.table-custom thead {
    background-color: #F1F5F9;
}

.table-custom th {
    font-weight: 600;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.table-custom td {
    vertical-align: middle;
    border: none;
    padding: 1rem 0.75rem;
}

.table-custom tbody tr {
    border-bottom: 1px solid #E2E8F0;
}

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

/* Status badges */
.badge-status {
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge-approved {
    background-color: #D1FAE5;
    color: #065F46;
}

.badge-pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-draft {
    background-color: #E2E8F0;
    color: #475569;
}

.badge-rejected {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* Page header */
.page-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-family: 'Mitr', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Filter card */
.filter-card {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Loading spinner */
.loading-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .page-header {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}
