/* assets/css/style.css */
/* Simple Corporate Light Theme Sheet - Light Gray and White */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #f8f9fa;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --primary-blue: #0d6efd;
    --primary-blue-hover: #0b5ed7;
    --accent-blue: #0d6efd;
    --text-white: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --border-hover: #0d6efd;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.2s ease-in-out;
    
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #212529;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #212529;
}

/* Page Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e9ecef;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
.navbar-custom {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    z-index: 1030;
}

.navbar-custom .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #212529;
}

.navbar-custom .navbar-brand span {
    color: var(--primary-blue);
}

.navbar-custom .nav-link {
    color: #495057;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
}

.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--primary-blue);
}

/* Hero Section */
.hero-gradient {
    position: relative;
    background-color: #e9ecef;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    color: #212529;
    font-weight: 800;
}

.hero-accent {
    color: var(--primary-blue);
}

/* Styled Bootstrap Cards */
.card-portal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-shadow);
}

.card-portal:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow-hover);
}

.card-portal .card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 ratio */
    background-color: #e9ecef;
}

.card-portal .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-portal:hover .card-img-top {
    transform: scale(1.04);
}

.card-portal .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-portal .card-title {
    color: #212529;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.card-portal .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Category Badges */
.badge-category {
    background-color: #e7f1ff;
    border: 1px solid #9ec5fe;
    color: #0a58ca;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-primary-custom:hover {
    background-color: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
    transform: translateY(-1px);
}

.btn-outline-custom {
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-outline-custom:hover {
    background-color: var(--primary-blue);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Sidebar Navigation (Admin Panel) */
.admin-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 240px;
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background-color: var(--bg-dark);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav-item a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition-smooth);
}

.sidebar-nav-item a i {
    font-size: 1.1rem;
    margin-right: 12px;
}

.sidebar-nav-item a:hover,
.sidebar-nav-item.active a {
    color: var(--primary-blue);
    background-color: #f8f9fa;
    border-left-color: var(--primary-blue);
}

/* Toast Custom Style */
.toast-container-custom {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1090;
}

.toast-custom {
    background-color: #ffffff;
    color: #212529;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-blue);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0.85rem;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.toast-custom.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-custom.success {
    border-left-color: #198754;
}

.toast-custom.error {
    border-left-color: #dc3545;
}

.toast-custom.warning {
    border-left-color: #ffc107;
}

/* Form Styles */
.form-control-custom {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    color: #212529 !important;
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    transition: var(--transition-smooth);
}

.form-control-custom:focus {
    background-color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.form-control-custom::placeholder {
    color: #adb5bd;
}

.form-label-custom {
    color: #495057;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-blue);
}

/* Details Page CSS */
.branch-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.branch-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 30%, rgba(255, 255, 255, 0.5) 80%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem;
}

.branch-banner-overlay h1 {
    color: #212529 !important;
}

.comment-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #000000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Statistics Widgets */
.stat-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.stat-icon {
    font-size: 2.25rem;
    color: var(--primary-blue);
}

/* Table Style custom */
.table-custom {
    width: 100%;
    color: #212529;
    border-collapse: collapse;
    background-color: #ffffff;
}

.table-custom th {
    background-color: #f1f3f5;
    border-bottom: 2px solid var(--border-color);
    padding: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.table-custom td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-custom tr:hover td {
    background-color: #f8f9fa;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .admin-layout {
        flex-direction: column;
    }
    .branch-banner {
        height: 240px;
    }
    .branch-banner-overlay h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .branch-banner {
        height: 160px;
    }
    .branch-banner-overlay h1 {
        font-size: 1.25rem;
    }
}

/* Soft muted gray text */
.text-muted {
    color: #6c757d !important;
}

/* Form switch light corrections */
.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.text-light {
    color: #333333 !important;
}
