﻿:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #a29bfe;
    --success: #00b894;
    --info: #0984e3;
    --warning: #fdcb6e;
    --danger: #d63031;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --white: #ffffff;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 80px;
    --top-nav-height: 60px;
}


/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f6fa;
    color: #333;
    overflow-x: hidden;
}

.admin-layout {
    min-height: 100vh;
}

/* Wrapper */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    position: fixed;
    height: 100vh;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-brand {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .sidebar-brand img {
        max-width: 40px;
        margin-bottom: 0.5rem;
    }

    .sidebar-brand span {
        font-weight: 600;
        font-size: 1.2rem;
        display: block;
    }

.sidebar-menu {
    padding: 1rem 0;
}

    .sidebar-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-menu li {
        position: relative;
    }

        .sidebar-menu li a {
            display: flex;
            align-items: center;
            padding: 0.8rem 1.5rem;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: all 0.3s;
        }

            .sidebar-menu li a:hover {
                color: var(--white);
                background-color: rgba(255, 255, 255, 0.1);
            }

            .sidebar-menu li a i {
                margin-right: 0.8rem;
                font-size: 1.1rem;
                width: 20px;
                text-align: center;
            }

            .sidebar-menu li a .fa-chevron-right {
                margin-left: auto;
                font-size: 0.8rem;
                transition: transform 0.3s;
            }

        .sidebar-menu li.active > a {
            color: var(--white);
            background-color: rgba(255, 255, 255, 0.2);
        }

        .sidebar-menu li.dropdown ul {
            background-color: rgba(0, 0, 0, 0.1);
            padding-left: 2.5rem;
            display: none;
        }

        .sidebar-menu li.dropdown.open > a .fa-chevron-right {
            transform: rotate(90deg);
        }

        .sidebar-menu li.dropdown.open > ul {
            display: block;
        }

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: all 0.3s;
}

/* Top Navigation */
.top-nav {
    height: var(--top-nav-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: fixed;
    width: calc(100% - var(--sidebar-width));
    z-index: 999;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--gray);
    margin-right: 1rem;
    cursor: pointer;
}

.breadcrumb {
    font-weight: 500;
    font-size: 1.1rem;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.user-name {
    margin-right: 0.5rem;
    font-weight: 500;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 180px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

    .user-dropdown a {
        display: block;
        padding: 0.5rem 1rem;
        color: var(--dark);
        text-decoration: none;
        transition: all 0.3s;
    }

        .user-dropdown a:hover {
            background-color: var(--gray-light);
            color: var(--primary);
        }

        .user-dropdown a i {
            margin-right: 0.5rem;
            width: 20px;
            text-align: center;
        }

.user-profile:hover .user-dropdown {
    display: block;
}

/* Content Area */
.content {
    padding: calc(var(--top-nav-height) + 1.5rem) 1.5rem 1.5rem;
    min-height: calc(100vh - var(--top-nav-height));
}

/* Footer */
.footer {
    padding: 1rem 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .page-header h1 {
        font-size: 1.8rem;
        font-weight: 600;
        margin: 0;
    }

/* Stats Cards */
.stats-row {
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    height: 100%;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

    .stat-icon.bg-primary {
        background-color: var(--primary);
    }

    .stat-icon.bg-success {
        background-color: var(--success);
    }

    .stat-icon.bg-info {
        background-color: var(--info);
    }

    .stat-icon.bg-warning {
        background-color: var(--warning);
    }

    .stat-icon.bg-danger {
        background-color: var(--danger);
    }

.stat-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.2rem 0;
}

.stat-info p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-bottom: 1px solid var(--gray-light);
}

    .card-header h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }

.card-body {
    padding: 1.5rem;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 0;
}

    .table th {
        font-weight: 600;
        color: var(--gray);
        border-top: none;
        border-bottom: 1px solid var(--gray-light);
        white-space: nowrap;
    }

    .table td {
        vertical-align: middle;
    }

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

.badge-primary {
    background-color: var(--primary);
}

.badge-secondary {
    background-color: var(--secondary);
}

.badge-success {
    background-color: var(--success);
}

.badge-info {
    background-color: var(--info);
}

.badge-warning {
    background-color: var(--warning);
}

.badge-danger {
    background-color: var(--danger);
}

.badge-light {
    background-color: var(--light);
    color: var(--dark);
}

.badge-dark {
    background-color: var(--dark);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
        border-color: var(--primary-dark);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
    }

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        left: calc(-1 * var(--sidebar-width));
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content.sidebar-collapsed {
        margin-left: 0;
        width: 100%;
    }

    /* Banner Management Styles */
    .banner-item {
        cursor: move;
        transition: all 0.3s ease;
    }

        .banner-item:hover {
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }

        .banner-item.ui-sortable-helper {
            box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
            transform: scale(1.02);
        }

    /* Custom file input styling */
    .custom-file-label::after {
        content: "Browse";
    }

    /* Switch styling */
    .custom-switch .custom-control-label::before {
        width: 3rem;
        border-radius: 1rem;
    }

    .custom-switch .custom-control-label::after {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 1.5rem;
        background-color: #fff;
        transform: translateX(0.5rem);
    }

    .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
        transform: translateX(1.75rem);
    }
    /* Menu Management Styles */
    .menu-item {
        cursor: move;
        transition: all 0.3s ease;
        margin-bottom: 5px;
    }

        .menu-item:hover {
            background-color: #f8f9fa;
        }

    .handle {
        cursor: move;
        color: #6c757d;
    }

    .ui-state-highlight {
        background: #f8f9fa;
        border: 2px dashed #dee2e6;
        height: 40px;
    }

    /* Custom switch styling */
    .custom-switch .custom-control-label::before {
        width: 3rem;
        border-radius: 1rem;
    }

    .custom-switch .custom-control-label::after {
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 1.5rem;
        background-color: #fff;
        transform: translateX(0.5rem);
    }

    .custom-switch .custom-control-input:checked ~ .custom-control-label::after {
        transform: translateX(1.75rem);
    }

    /* Custom file input styling */
    .custom-file-label::after {
        content: "Browse";
    }

    /* Badge styling */
    .badge-success {
        background-color: #28a745;
    }

    .badge-danger {
        background-color: #dc3545;
    }

    .badge-warning {
        background-color: #ffc107;
    }
    /* Page Management Styles */
.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
}

/* Custom switch styling */
.custom-switch .custom-control-label::before {
    width: 3rem;
    border-radius: 1rem;
}

.custom-switch .custom-control-label::after {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 1.5rem;
    background-color: #fff;
    transform: translateX(0.5rem);
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
    transform: translateX(1.75rem);
}

/* TinyMCE editor styling */
.tox-tinymce {
    border-radius: 4px !important;
    border: 1px solid #ced4da !important;
}

/* SEO settings form styling */
.seo-section {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.seo-section h4 {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
    .pagination a {
        color: #007bff;
        padding: 6px 12px;
        text-decoration: none;
        border: 1px solid #dee2e6;
        margin-left: -1px;
    }

        .pagination a.active {
            background-color: #007bff;
            color: white;
            border: 1px solid #007bff;
        }

        .pagination a:hover:not(.active) {
            background-color: #ddd;
        }
}
