/* File: /kp7-system/style.css */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1a4f9c; /* สีน้ำเงินราชการ */
    --primary-gradient: linear-gradient(135deg, #1a4f9c 0%, #0d6efd 100%);
    --secondary-color: #fca311; /* สีทอง/ส้ม เพื่อตัดกัน */
    --bg-color: #f3f6f9;
    --text-color: #333;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Sarabun', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

/* --- Buttons & Inputs --- */
.btn-primary-custom {
    background: var(--primary-gradient);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(26, 79, 156, 0.2);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 79, 156, 0.3);
    color: white;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* --- Cards --- */
.card-custom {
    border: none;
    border-radius: 16px;
    background: white;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-header-custom {
    background: white;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

/* --- Navbar --- */
.navbar-custom {
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Status Badges --- */
.status-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.status-pending { background-color: #fff8e1; color: #b76e00; border: 1px solid #ffe082; }
.status-approved { background-color: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.status-rejected { background-color: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease-out forwards;
}