/* ============================================
   THAYTUVI.AI - UNIFIED SITE STYLES
   Tất cả styles cho toàn bộ site
   Version: 2.0
   ============================================ */

/* ============================================
   1. GLOBAL RESET & BASE
   ============================================ */
* {
    list-style: none !important;
    list-style-type: none !important;
}

body, html {
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 0;
    margin: 0;
}

body {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================
   2. TYPOGRAPHY - UNIFIED COLORS (PURPLE THEME FROM HEADER)
   ============================================ */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 700; 
    color: #6b46c1 !important; /* Purple chính từ header gradient */
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Override ALL inline color styles - DÙNG MÀU TÍM TỪ HEADER */
[style*="color: #d32f2f"],
[style*="color: #6b46c1"],
[style*="color: #ff6b6b"],
[style*="color: #3730a3"],
[style*="color: #fbbf24"],
[style*="color: #1f2937"],
[style*="color: #6b2c7a"] {
    color: #6b46c1 !important; /* Purple chính từ header */
}

/* Override Tailwind color classes - DÙNG MÀU TÍM TỪ HEADER */
.text-purple-900,
.text-purple-700,
.text-purple-600,
.text-purple-800,
.text-blue-700,
.text-blue-600,
.text-blue-800,
.text-blue-500,
.text-green-700,
.text-yellow-700,
.text-orange-700,
.text-red-700,
.text-gray-800,
.text-gray-700,
.text-gray-600,
.text-gray-900 {
    color: #6b46c1 !important; /* Purple chính từ header */
}

/* Override background colors */
.bg-blue-500,
.bg-blue-600,
.bg-blue-100,
.bg-blue-50 {
    background-color: #6b46c1 !important;
}

.bg-purple-500,
.bg-purple-600,
.bg-purple-100,
.bg-purple-50 {
    background-color: #6b46c1 !important;
}

/* Override border colors */
.border-blue-200,
.border-purple-200 {
    border-color: #6b46c1 !important;
}

/* Strong text - DÙNG MÀU TÍM TỪ HEADER */
strong {
    color: #6b46c1 !important;
    font-weight: 700;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3730a3;
    text-align: center;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .page-title { font-size: 2.25rem; }
}

/* ============================================
   3. CONTAINERS & LAYOUT
   ============================================ */
.main-container, .content-wrapper {
    background-color: #ffffff !important;
    min-height: 100vh;
}

.content-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section { padding: 2rem 0; }

/* Override bg-main */
.bg-main {
    background: #ffffff !important;
    background-image: none !important;
}

/* ============================================
   4. BUTTONS - THỐNG NHẤT MÀU TÍM CHÍNH #a04eb8
   ============================================ */
/* TẤT CẢ BUTTON ĐỀU DÙNG MÀU TÍM CHÍNH */
button, .btn, .btn-primary, .btn-secondary, .btn-success, .btn-info, .btn-warning, .btn-danger,
.L_bg-blue, .btn_1, .btn_01, .btn-general-action, .btn-logout, .btn-login-full,
[class*="btn-"], input[type="submit"], input[type="button"] {
    background: #a04eb8 !important; /* Màu tím chính */
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(160, 78, 184, 0.2) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

/* Hover effect - BỎ HẾT, GIỮ NGUYÊN MÀU TÍM LOGO */
button:hover, .btn:hover, .btn-primary:hover, .btn-secondary:hover, .btn-success:hover, 
.btn-info:hover, .btn-warning:hover, .btn-danger:hover,
.L_bg-blue:hover, .btn_1:hover, .btn_01:hover, .btn-general-action:hover, 
.btn-logout:hover, .btn-login-full:hover,
[class*="btn-"]:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: #a04eb8 !important; /* GIỮ NGUYÊN màu tím logo */
    transform: none !important; /* Không có hiệu ứng di chuyển */
    box-shadow: 0 2px 4px rgba(160, 78, 184, 0.2) !important; /* Giữ shadow ban đầu */
}

/* Focus effect */
button:focus, .btn:focus, .btn-primary:focus, .btn-secondary:focus, .btn-success:focus,
.btn-info:focus, .btn-warning:focus, .btn-danger:focus,
.L_bg-blue:focus, .btn_1:focus, .btn_01:focus, .btn-general-action:focus,
.btn-logout:focus, .btn-login-full:focus,
[class*="btn-"]:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.3) !important;
}

/* Active effect - BỎ HẾT */
button:active, .btn:active, .btn-primary:active, .btn-secondary:active, .btn-success:active,
.btn-info:active, .btn-warning:active, .btn-danger:active,
.L_bg-blue:active, .btn_1:active, .btn_01:active, .btn-general-action:active,
.btn-logout:active, .btn-login-full:active,
[class*="btn-"]:active, input[type="submit"]:active, input[type="button"]:active {
    background: #a04eb8 !important; /* GIỮ NGUYÊN màu tím logo */
    transform: none !important;
    box-shadow: 0 2px 4px rgba(160, 78, 184, 0.2) !important;
}

/* Disabled state */
button:disabled, .btn:disabled, .btn-primary:disabled, .btn-secondary:disabled, .btn-success:disabled,
.btn-info:disabled, .btn-warning:disabled, .btn-danger:disabled,
.L_bg-blue:disabled, .btn_1:disabled, .btn_01:disabled, .btn-general-action:disabled,
.btn-logout:disabled, .btn-login-full:disabled,
[class*="btn-"]:disabled, input[type="submit"]:disabled, input[type="button"]:disabled {
    background: #9ca3af !important; /* Màu xám khi disabled */
    color: #6b7280 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Override tất cả background colors khác */
button[style*="background"], .btn[style*="background"], 
[class*="btn-"][style*="background"],
.bg-purple-500, .bg-red-500, .bg-gray-500, .bg-green-500,
.bg-blue-500, .bg-blue-600, .bg-purple-600, .bg-red-600, .bg-gray-600,
a[style*="background"], input[style*="background"] {
    background: #a04eb8 !important; /* Màu tím chính */
    color: white !important;
}

/* Override tất cả text colors trên button */
button, .btn, [class*="btn-"], input[type="submit"], input[type="button"],
.bg-purple-500, .bg-red-500, .bg-gray-500, .bg-green-500,
.bg-blue-500, .bg-blue-600, .bg-purple-600, .bg-red-600, .bg-gray-600,
a[style*="background"], input[style*="background"] {
    color: white !important;
}

/* Override accordion headers - FORCE MÀU TÍM LOGO */
.accordion-header,
.accordion-header[style],
div[class*="accordion-header"] {
    background: #a04eb8 !important; /* Màu tím logo - FORCE */
    background-image: none !important; /* Xóa mọi gradient */
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(160, 78, 184, 0.3) !important;
    padding: 20px 30px !important;
    border-radius: 15px !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.accordion-header:hover,
.accordion-header[style]:hover {
    background: #a04eb8 !important; /* GIỮ NGUYÊN màu khi hover */
    background-image: none !important;
    transform: none !important;
    box-shadow: 0 4px 12px rgba(160, 78, 184, 0.3) !important;
}

.accordion-header strong {
    color: white !important;
}

/* Override inline styles với màu cụ thể - FORCE MÀU TÍM LOGO */
[style*="background-color: #0084ff"],
[style*="background-color: #ef4444"],
[style*="background-color: #10b981"],
[style*="background-color: #FFD700"],
[style*="background: linear-gradient(135deg, #ff6b6b"],
[style*="background: linear-gradient(135deg, #f57c00"],
[style*="background: linear-gradient(135deg, #6b46c1"],
[style*="background: linear-gradient(135deg, #764ba2"],
[style*="background: linear-gradient(135deg, #a855c7"],
[style*="background: linear-gradient(135deg, #7c3aed"],
[style*="background: linear-gradient(135deg"],
[style*="bg-gradient-to-r from-purple-500"],
[style*="bg-gradient-to-r from-green-500"],
[style*="bg-gradient-to-r from-blue-500"],
[style*="bg-gradient-to-r from-red-500"],
[style*="bg-gray-500"],
[style*="bg-green-500"],
[style*="bg-purple-500"],
[style*="bg-red-500"],
.accordion-header[style*="background"],
div[style*="background: linear-gradient"].accordion-header {
    background: #a04eb8 !important; /* Màu tím logo - FORCE */
    background-image: none !important; /* Xóa mọi gradient */
    color: white !important;
}

/* ============================================
   5. HEADER & NAVBAR - MÀU TÍM TỪ LOGO (CHUẨN)
   ============================================ */

/* Service Cards */
.service-card {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   5. MENU & HEADER
   ============================================ */
/* MENU COLOR - ĐÃ TẮT - Dùng CSS trong _sidebar.php */
/* .menu a, .menu a span, .menu a * {
    color: #f5d556 !important;
} */

/* ============================================
   5. HEADER & NAVBAR - MÀU TÍM CHÍNH #a04eb8
   ============================================ */
/* Sử dụng màu tím chính #a04eb8 và màu phối hợp */
header, .header-logo-bg, .bg-main,
.navbar, nav.navbar,
header[style*="background"],
.navbar[style*="background"] {
    background: #a04eb8 !important; /* Màu tím chính */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-bottom: 2px solid #8a3a9e !important; /* border tím đậm hơn */
    position: fixed !important;
    width: 100% !important;
    z-index: 50 !important;
    top: 0 !important;
    left: 0 !important;
}

/* Override các header khác để dùng màu tím chính */
header.bg-white,
header.glass-effect,
header.bg-gray-50,
header[class*="bg-"],
.navbar[class*="bg-"] {
    background: #a04eb8 !important; /* Màu tím chính */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-bottom: 2px solid #8a3a9e !important;
    position: fixed !important;
    width: 100% !important;
    z-index: 50 !important;
    top: 0 !important;
    left: 0 !important;
}

/* Override inline styles */
[style*="background: linear-gradient"],
[style*="background:linear-gradient"] {
    background: #a04eb8 !important; /* Màu tím chính */
}

header a { color: white !important; }
header a:hover { color: #fef08a !important; }

/* ============================================
   6. FOOTER
   ============================================ */
footer, .footer-logo-bg {
    background: linear-gradient(180deg, #8b3d98 0%, #6b2c7a 100%) !important;
}

footer a { color: #f5d556 !important; text-decoration: none; }
footer a:hover { color: #fef08a !important; }
footer a.text-white { color: white !important; }

/* ============================================
   7. CALENDAR STYLES
   ============================================ */
.calendar-table thead tr {
    background: linear-gradient(to right, #c084fc, #f9a8d4) !important;
}

.calendar-table thead th {
    background: transparent !important;
    color: white !important;
}

.calendar-day {
    padding: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.calendar-day:hover {
    background-color: #bfdbfe !important;
    transform: scale(1.02);
}

.calendar-table .calendar-day.today-border,
td.calendar-day.today-border {
    border: 3px solid #a855f7 !important;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.6) !important;
    position: relative !important;
    z-index: 10 !important;
    background-color: rgba(168, 85, 247, 0.1) !important;
}

/* ============================================
   8. UTILITIES
   ============================================ */
img[src*="slide"], div[style*="slide"], img[src*="ngang.png"] {
    display: none !important;
}

/* Remove bullets */
ul::before, ol::before, li::before, div::before, p::before {
    content: "" !important;
    display: none !important;
}

/* Content alignment */
.c_content, .content {
    text-align: left !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    background-color: white !important;
    padding: 1rem !important;
    border-radius: 0.5rem !important;
    line-height: 1.8 !important;
}

/* ============================================
   9. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    .service-card { padding: 1rem; }
    
    .main-content, main {
        padding-top: 52px !important;
    }
    
    .container, .max-w-7xl, .max-w-6xl, .max-w-5xl {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .p-6 { padding: 10px !important; }
    .p-8 { padding: 12px !important; }
    
    .shadow-md, .shadow-lg, .shadow-xl {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
}
/* Updated: 2025-10-23 16:52:59 */
