/* Kidsa Theme CSS */
:root {
    --primary-coral: #F4A06C;
    --primary-blue: #374B5C;
    --bg-cream: #FEF6F2;
    --text-gray: #666;
    --border-color: #E8ECF0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* Layout & General */
body {
    background-color: var(--bg-cream);
    color: var(--text-gray);
}

.content-wrapper {
    background-color: var(--bg-cream);
    padding: 30px;
    min-height: 100vh;
}

/* Typography */
.page-header {
    color: var(--primary-blue);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Cards */
.custom-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.custom-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    height: 48px;
    transition: all var(--transition-normal);
    background-color: white;
}

.form-control:hover {
    border-color: var(--primary-coral);
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 4px rgba(244, 160, 108, 0.1);
    outline: none;
}

.form-label {
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.form-group:focus-within .form-label {
    color: var(--primary-coral);
}

/* Buttons */
.btn-coral {
    background: var(--primary-coral);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-coral:hover {
    background: #e88f5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 143, 90, 0.2);
    color: white;
}

.btn-coral:active {
    transform: translateY(0);
}

/* Filter Buttons */
.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    border: 2px solid var(--primary-coral);
    background: transparent;
    color: var(--primary-coral);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.filter-btn:hover {
    background: rgba(244, 160, 108, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--primary-coral);
}

.filter-btn.active {
    background: var(--primary-coral);
    color: white;
}

.filter-btn.active:hover {
    background: #e88f5a;
    border-color: #e88f5a;
    color: white;
}

/* Tables */
.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    color: var(--primary-blue);
    font-weight: 500;
    padding: 15px;
    background: #F8FAFB;
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover td {
    background-color: rgba(244, 160, 108, 0.05);
}

/* Search Box */
.search-box {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    width: 250px;
    transition: all var(--transition-normal);
}

.search-box:hover {
    border-color: var(--primary-coral);
    box-shadow: var(--shadow-sm);
}

.search-box:focus {
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 4px rgba(244, 160, 108, 0.1);
    outline: none;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: var(--shadow-lg);
}

.modal-content .form-control {
    background-color: #FFFFFF;
}

.modal-header {
    border-bottom: none;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: none;
    padding: 20px 25px;
}

.btn-close {
    transition: transform var(--transition-normal);
}

.btn-close:hover {
    transform: rotate(90deg);
}

/* Bootstrap Table Enhancements */
.bootstrap-table .fixed-table-toolbar .search input {
    height: 42px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    transition: all var(--transition-normal);
}

.bootstrap-table .fixed-table-toolbar .search input:hover {
    border-color: var(--primary-coral);
    box-shadow: var(--shadow-sm);
}

.bootstrap-table .fixed-table-toolbar .search input:focus {
    border-color: var(--primary-coral);
    box-shadow: 0 0 0 4px rgba(244, 160, 108, 0.1);
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-coral);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e88f5a;
}
/* Header/Navbar Styles */
.default-layout-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 0.5rem 1rem;
}

/* Brand/Logo Area */
.navbar-brand-wrapper {
    background: white;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 0 1.5rem;
}

.navbar-brand img {
    height: 40px;
    max-width: 100%;
    transition: var(--transition-normal);
}

/* Menu Wrapper */
.navbar-menu-wrapper {
    padding: 0 2rem;
}

/* Toggle Button */
.navbar-toggler {
    color: var(--text-gray);
    border: none;
    padding: 0.5rem;
    transition: var(--transition-normal);
}

.navbar-toggler:hover {
    color: var(--primary-coral);
}

/* Cache Clear Button */
.cache-clear .btn-inverse-info {
    background: var(--bg-cream);
    color: var(--primary-coral);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: var(--transition-normal);
}

.cache-clear .btn-inverse-info:hover {
    background: var(--primary-coral);
    color: white;
    transform: translateY(-1px);
}

/* Navigation Items */
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-coral);
}

/* Language Dropdown */
.nav-link.count-indicator {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.dropdown-item:hover {
    background: var(--bg-cream);
    color: var(--primary-coral);
}

.dropdown-divider {
    margin: 0.3rem 0;
    opacity: 0.1;
}

/* Profile Section */
.nav-profile-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
}

.nav-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-profile-text {
    font-weight: 500;
    color: var(--primary-blue);
}

/* Profile Dropdown */
.dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 0.5rem;
}

/* Alert Styles */
.alert-fill-danger {
    background: #ffe5e5;
    color: #ff4444;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.alert-fill-danger .alert-link {
    color: #cc0000;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .navbar-brand-wrapper {
        padding: 0 1rem;
    }

    .navbar-menu-wrapper {
        padding: 0 1rem;
    }
}
/* Sidebar Styles */
.sidebar {
    background: white;
    padding: 20px 0;
    min-height: 100vh;
    box-shadow: 1px 0 10px rgba(0,0,0,0.05);
}

/* Search Box Styles */
.sidebar-search {
    margin-bottom: 20px;
}

.sidebar-search .form-control {
    background: var(--bg-cream);
    border: none;
    height: 40px;
    font-size: 14px;
    transition: all var(--transition-normal);
}

.sidebar-search .form-control:focus {
    background: white;
    border: 2px solid var(--primary-coral);
    box-shadow: 0 0 0 4px rgba(244, 160, 108, 0.1);
}

/* Navigation Menu Styles */
.sidebar .nav {
    margin-top: 10px;
}

.sidebar .nav-item {
    margin-bottom: 2px;
}

.sidebar .nav-link {
    padding: 12px 25px;
    color: var(--text-gray);
    font-size: 14px;
    transition: all var(--transition-normal);
    border-radius: 0;
    position: relative;
}

.sidebar .nav-link:hover {
    color: var(--primary-coral);
    background: var(--bg-cream);
}

.sidebar .nav-link.active {
    color: var(--primary-coral);
    background: var(--bg-cream);
}

/* Menu Icon Styles */
.sidebar .menu-icon {
    font-size: 18px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Sub Menu Styles */
.sidebar .collapse .nav {
    padding-left: 30px;
}

.sidebar .collapse .nav-link {
    padding: 10px 25px;
    font-size: 13px;
}

/* Menu Arrow Styles */
.menu-arrow {
    font-family: 'FontAwesome';
    margin-left: auto;
    transition: transform var(--transition-normal);
}

.menu-arrow::before {
    content: '\f105';
}

[aria-expanded="true"] .menu-arrow {
    transform: rotate(90deg);
}

/* Active State Highlight */
.nav-item.active > .nav-link {
    color: var(--primary-coral);
    background: var(--bg-cream);
}

.nav-item.active > .nav-link .menu-icon {
    color: var(--primary-coral);
}

/* Menu Title */
.menu-title {
    font-weight: 500;
}

/* Collapsible Menu Animation */
.collapse {
    transition: all var(--transition-normal);
}

/* Hover Effects */
.sidebar .nav-link:hover .menu-icon,
.sidebar .nav-link:hover .menu-title {
    color: var(--primary-coral);
}

/* Submenu Indent Line */
.sub-menu {
    position: relative;
}

.sub-menu:before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #eee;
    opacity: 0.5;
}

/* Lock Icon Style */
.nav-link [class*="fa-lock"] {
    font-size: 12px;
    margin-left: 5px;
    opacity: 0.5;
}
/* Description Modal Styles */
#descriptionModal.modal {
    padding-right: 0 !important;
}

#descriptionModal .modal-content {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#descriptionModal .modal-header {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
}

#descriptionModal .modal-title {
    color: var(--primary-blue);
    font-size: 20px;
    font-weight: 500;
}

#descriptionModal .close {
    padding: 0;
    margin: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-cream);
    opacity: 1;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

#descriptionModal .close span {
    color: var(--text-gray);
    text-shadow: none;
    font-size: 20px;
}

#descriptionModal .close:hover {
    background: var(--primary-coral);
    transform: rotate(90deg);
}

#descriptionModal .close:hover span {
    color: white;
}

#descriptionModal .modal-body {
    padding: 25px;
}

#descriptionModal .description-data {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 14px;
}

#descriptionModal .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 20px 25px;
    border-radius: 0 0 16px 16px;
}

#descriptionModal .btn-secondary {
    background: var(--bg-cream);
    color: var(--text-gray);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    transition: all var(--transition-normal);
}

#descriptionModal .btn-secondary:hover {
    background: var(--primary-coral);
    color: white;
    transform: translateY(-2px);
}

/* Modal size adjustments */
#descriptionModal .modal-xl {
    max-width: 90%;
    margin: 1.75rem auto;
}

@media (max-width: 768px) {
    #descriptionModal .modal-xl {
        max-width: 95%;
        margin: 1rem auto;
    }
}
/* Footer Styles */
.footer {
    background: white;
    padding: 20px 30px;
    font-size: 14px;
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.footer .text-muted {
    color: var(--text-gray) !important;
}

.footer a.text-theme {
    color: var(--primary-coral);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer a.text-theme:hover {
    color: #e88f5a;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .footer {
        padding: 15px 20px;
        text-align: center;
    }
}

/* Optional shadow for depth */
.footer::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to top, rgba(0,0,0,0.02), transparent);
}
/* Form Container Styles */
.custom-card, .card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 20px;
}

/* Title Styles */
.page-header {
    color: #374B5C;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Form Group Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #374B5C;
    font-size: 14px;
    margin-bottom: 8px;
}

/* Required Field Indicator */
label .text-danger {
    color: #ff4444;
}

/* Optional Field Indicator */
.text-info {
    color: #999;
    font-size: 13px;
}

/* Radio Button Styles */
.form-check-input[type="radio"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border: 2px solid #F4A06C;
    cursor: pointer;
}

.form-check-label {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

/* Input Field Styles */
.form-control {
    border: 1px solid #E8ECF0;
    border-radius: 4px;
    padding: 8px 12px;
    height: 40px;
    color: #374B5C;
    font-size: 14px;
}

.form-control:focus {
    border-color: #F4A06C;
    box-shadow: none;
}

/* Select Styles */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3e%3cpath fill='%23666' d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
}

/* Checkbox Styles */
.form-check-input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border: 2px solid #F4A06C;
    border-radius: 3px;
    cursor: pointer;
}

/* Button Styles */
.btn-coral, button[type="submit"] {
    background: #F4A06C;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.btn-reset, button[type="reset"] {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
}

/* Filter Button Styles */
.filter-btn {
    background: #F4A06C;
    color: white;
    border: 1px solid #F4A06C;
    padding: 4px 16px;
    border-radius: 15px;
    font-size: 13px;
}

.filter-btn.outline {
    background: transparent;
    color: #F4A06C;
}

/* Table Styles */
.table th {
    background: #f8f9fa;
    color: #374B5C;
    font-weight: 500;
    padding: 12px 15px;
    font-size: 14px;
}

.table td {
    padding: 12px 15px;
    color: #666;
    font-size: 14px;
}

/* List Header Section */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Search Input */
.search-input {
    border: 1px solid #E8ECF0;
    border-radius: 4px;
    padding: 8px 12px;
    width: 200px;
    font-size: 14px;
}

/* Status Pills */
.status-pill {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
}

.status-pill.active {
    background: #F4A06C;
    color: white;
}

.status-pill.inactive {
    background: transparent;
    border: 1px solid #F4A06C;
    color: #F4A06C;
}
/* Override Gradient Primary Button */
.btn-gradient-primary,
.btn-gradient-primary.disabled {
    background: var(--primary-coral);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    background-image: none; /* Remove any existing gradient */
    transition: all 0.3s ease;
}

.btn-gradient-primary:hover,
.btn-gradient-primary:focus,
.btn-gradient-primary:active {
    background: #e88f5a !important;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 160, 108, 0.2);
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

/* If there's a disabled state */
.btn-gradient-primary:disabled,
.btn-gradient-primary.disabled {
    background: #ffd5c2;
    cursor: not-allowed;
    transform: none;
}
