/**
 * Common Styles - เน้นใช้ Bootstrap เป็นหลัก เพิ่มเติมเฉพาะที่จำเป็น
 * ใช้ Bootstrap utilities และ variables มากที่สุด
 */

/* ========== MINIMAL CUSTOM VARIABLES ========== */
:root {
    /* ใช้ Bootstrap CSS Variables แทน */
    --bs-border-radius-lg: 1rem;
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ========== GLOBAL TYPOGRAPHY ========== */
body {
    font-family: 'Sarabun', system-ui, -apple-system, sans-serif;
}

/* ========== MINIMAL UTILITY EXTENSIONS ========== */
/* Gradient backgrounds removed for consistent styling across all admin pages */

.shadow-lg-custom {
    box-shadow: var(--bs-box-shadow-lg) !important;
}

.rounded-lg-custom {
    border-radius: var(--bs-border-radius-lg) !important;
}

/* ========== COMPONENT ENHANCEMENTS ========== */
/* Standardized card styling for consistent UI across all admin pages */
.card {
    border: 1px solid rgba(0, 0, 0, 0.125);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-body {
    background-color: #ffffff;
    padding: 1.5rem;
    /* Remove all gradients and ensure consistent background */
    background-image: none !important;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    /* Remove gradients from headers */
    background-image: none !important;
}

/* Ensure statistics cards have consistent styling */
.stat-card .card-body {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* ปรับปรุง Bootstrap components เล็กน้อย */
.btn-hover-lift:hover {
    transform: translateY(-0.125rem);
    box-shadow: var(--bs-box-shadow-lg);
}

.card-hover:hover {
    transform: translateY(-0.25rem);
    transition: all 0.15s ease-in-out;
}

/* ========== FORM ENHANCEMENTS ========== */
.form-control-lg-custom {
    padding: 0.75rem 1rem;
}

/* ========== TABLE ENHANCEMENTS ========== */
.table-sticky-header th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ========== ANIMATION ========== */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE UTILITIES ========== */
@media print {
    .no-print { display: none !important; }
}

/* ========== NAVIGATION STYLES ========== */
.navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    transition: all 0.15s ease-in-out;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    border-radius: 0.375rem;
    margin: 0.125rem 0.5rem;
    padding: 0.5rem 0.75rem;
}

.dropdown-item:hover {
    background-color: var(--bs-light);
}

/* Navigation responsive */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}
