/* =============================================
   Digi Knowledge - Admin Panel Styles
   Matching Frontend E-Commerce Design
   ============================================= */

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

:root {
    /* Main Colors - Matching Frontend */
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --secondary: #e94560;
    --accent: #0f3460;
    --gold: #d4a574;
    --gold-light: #e8c9a8;
    
    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #8a8a9a;
    --text-light: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #faf8f5;
    --bg-dark: #1a1a2e;
    --bg-cream: #f5f0e8;
    
    /* Border & Shadow */
    --border-color: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 48px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Layout */
    --sidebar-width: 270px;
    --sidebar-collapsed: 70px;
}

/* =============================================
   Base Styles
   ============================================= */

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-cream) 100%);
    color: var(--text-body);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* =============================================
   Sidebar - Modern Design
   ============================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    color: white;
    z-index: 1050;
    transition: all var(--transition-normal);
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.sidebar-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.sidebar-logo:hover .sidebar-logo-img {
    transform: scale(1.05);
}

.sidebar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    margin: 0.15rem 0.75rem;
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    transition: all var(--transition-normal);
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 60%;
    background: var(--secondary);
    border-radius: 0 4px 4px 0;
    transition: width var(--transition-normal);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.sidebar-nav .nav-link.active::before {
    width: 4px;
}

.sidebar-nav .nav-link i {
    width: 22px;
    font-size: 1rem;
    text-align: center;
    transition: transform var(--transition-fast);
}

.sidebar-nav .nav-link:hover i {
    transform: scale(1.15);
    color: var(--gold);
}

.sidebar-nav .nav-link.active i {
    color: var(--gold);
}

/* Sidebar Section Divider */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 1rem 1.5rem;
}

.sidebar-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* =============================================
   Main Content Area
   ============================================= */

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}

/* =============================================
   Top Navbar - Modern Style
   ============================================= */

.top-navbar {
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    padding: 1rem 2rem;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.top-navbar h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-size: 1.1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.user-info:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--secondary);
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(233, 69, 96, 0.3);
}

.user-info .fw-bold {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.user-info small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* =============================================
   Content Area
   ============================================= */

.content-area {
    padding: 2rem;
}

/* =============================================
   Page Header
   ============================================= */

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.page-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* =============================================
   Cards - Modern Style
   ============================================= */

.card {
    background: var(--bg-primary);
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

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

.card-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h5 i {
    color: var(--secondary);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Dashboard Stat Cards */
.stat-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card .stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card .stat-icon.primary {
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.15) 0%, rgba(233, 69, 96, 0.05) 100%);
    color: var(--secondary);
}

.stat-card .stat-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #10b981;
}

.stat-card .stat-icon.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #3b82f6;
}

.stat-card .stat-icon.warning {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.05) 100%);
    color: var(--gold);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card h3.text-primary { color: var(--secondary) !important; }
.stat-card h3.text-success { color: #10b981 !important; }
.stat-card h3.text-info { color: #3b82f6 !important; }
.stat-card h3.text-warning { color: var(--gold) !important; }

/* =============================================
   Buttons - Gradient Style
   ============================================= */

.btn {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    transition: all var(--transition-normal);
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #ff6b88 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b88 0%, var(--secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-info:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: var(--text-dark);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    color: white;
}

.btn-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.3);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

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

.btn-outline-success {
    background: transparent;
    border: 2px solid #10b981;
    color: #10b981;
}

.btn-outline-success:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-info {
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
}

.btn-outline-info:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-warning {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline-warning:hover {
    background: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-body);
}

.btn-outline-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* =============================================
   Forms - Modern Style
   ============================================= */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
    background: var(--bg-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.input-group-text {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
}

/* =============================================
   Tables - Clean Style
   ============================================= */

.table {
    margin: 0;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
    background: var(--bg-secondary);
}

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

.table tbody tr {
    transition: background var(--transition-fast);
}

.table tbody tr:hover {
    background: var(--bg-secondary);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(250, 248, 245, 0.5);
}

/* Table Actions */
.table .btn-group {
    display: flex;
    gap: 0.35rem;
}

.table .btn-sm {
    padding: 0.35rem 0.75rem;
}

/* =============================================
   Action Buttons - Modern Style
   ============================================= */

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* View Button - Blue */
.btn-action-view {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.btn-action-view:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Edit Button - Primary/Coral */
.btn-action-edit {
    background: linear-gradient(135deg, var(--secondary) 0%, #ff6b88 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(233, 69, 96, 0.3);
}

.btn-action-edit:hover {
    background: linear-gradient(135deg, #ff6b88 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

/* Delete Button - Red */
.btn-action-delete {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.btn-action-delete:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

/* Approve Button - Green */
.btn-action-approve {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.btn-action-approve:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Reject Button - Orange/Red */
.btn-action-reject {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.btn-action-reject:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

/* Image Button - Cyan */
.btn-action-image {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(6, 182, 212, 0.3);
}

.btn-action-image:hover {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(6, 182, 212, 0.4);
}

/* =============================================
   Alerts - Modern Style
   ============================================= */

.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.1rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #059669;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(212, 165, 116, 0.05) 100%);
    color: #92400e;
    border-left: 4px solid var(--gold);
}

.alert-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1d4ed8;
    border-left: 4px solid #3b82f6;
}

/* =============================================
   Badges - Consistent Style
   ============================================= */

.badge {
    font-weight: 600;
    padding: 0.4em 0.85em;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge.bg-primary,
.bg-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #ff6b88 100%) !important;
}

.badge.bg-success,
.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
}

.badge.bg-warning,
.bg-warning {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%) !important;
    color: var(--text-dark) !important;
}

.badge.bg-danger,
.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%) !important;
}

.badge.bg-info,
.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, var(--text-muted) 0%, #a0a0b0 100%) !important;
}

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.status-approved {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
}

.status-rejected {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
}

/* =============================================
   Pagination - Modern Style
   ============================================= */

.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    color: var(--text-body);
    font-weight: 500;
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.pagination .page-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.25);
}

.pagination .page-item.disabled .page-link {
    background: var(--bg-cream);
    color: var(--text-muted);
}

/* =============================================
   Modal - Clean Style
   ============================================= */

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

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0 0 16px 16px;
}

.btn-close:focus {
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

/* =============================================
   CKEditor Styling
   ============================================= */

.ck-editor__editable {
    min-height: 300px;
    border-radius: 0 0 10px 10px !important;
    border-color: var(--border-color) !important;
}

.ck-editor__editable:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1) !important;
}

.ck.ck-toolbar {
    border-radius: 10px 10px 0 0 !important;
    border-color: var(--border-color) !important;
    background: var(--bg-secondary) !important;
}

.ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
    border-color: var(--border-color) !important;
}

.ck.ck-editor__main > .ck-editor__editable.ck-focused {
    border-color: var(--secondary) !important;
}

/* =============================================
   Images & Thumbnails
   ============================================= */

.img-thumbnail {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.25rem;
    background: var(--bg-primary);
    transition: all var(--transition-normal);
}

.img-thumbnail:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

/* =============================================
   Breadcrumb
   ============================================= */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item a {
    color: var(--secondary);
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* =============================================
   Empty States
   ============================================= */

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* =============================================
   Admin Auth Page Styles
   ============================================= */

.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    padding: 1rem 0;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    margin: 1rem;
    position: relative;
    z-index: 1;
}

.login-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--accent);
}

.login-header h3 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.login-header p {
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

.login-body {
    padding: 3rem 2rem 2rem;
}

.login-body .form-control {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 0.875rem 1rem;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    background: var(--bg-secondary);
}

.login-body .form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
    background: white;
}

.btn-login {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-normal);
    color: white;
    width: 100%;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
    color: white;
}

.login-body .form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-body .input-group-text {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--text-muted);
}

.login-body .input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.login-body .input-group:focus-within .input-group-text {
    border-color: var(--secondary);
}

.back-to-site {
    text-align: center;
    margin-top: 1.5rem;
}

.back-to-site a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.back-to-site a:hover {
    color: var(--text-dark);
}

/* =============================================
   Quick Action Cards
   ============================================= */

.quick-action-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
    height: 100%;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

/* =============================================
   Text Utilities
   ============================================= */

.text-primary { color: var(--secondary) !important; }
.text-success { color: #10b981 !important; }
.text-info { color: #3b82f6 !important; }
.text-warning { color: var(--gold) !important; }
.text-danger { color: #ef4444 !important; }
.text-muted { color: var(--text-muted) !important; }

/* =============================================
   Responsive Styles
   ============================================= */

@media (max-width: 991px) {
    .sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    .top-navbar {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-card .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        margin: -1rem;
        padding: 0 1rem;
    }
    
    .user-info {
        padding: 0.35rem 0.75rem;
    }
    
    .user-info > div:last-child {
        display: none;
    }
}

@media (max-width: 576px) {
    .top-navbar h5 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
    
    .login-body {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .login-header {
        padding: 2rem 1.5rem;
    }
}

/* Small laptop screens - Compact auth form */
@media (max-height: 750px) {
    .auth-page {
        align-items: flex-start;
        padding: 0.5rem 0;
    }
    
    .login-container {
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .login-header {
        padding: 1.25rem 1.5rem;
    }
    
    .login-header h3 {
        font-size: 1.35rem;
        margin-bottom: 0.25rem;
    }
    
    .login-header p {
        font-size: 0.85rem;
    }
    
    .login-header::after {
        bottom: -12px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid var(--accent);
    }
    
    .login-body {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .login-body .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .login-body .form-label {
        margin-bottom: 0.35rem;
        font-size: 0.85rem;
    }
    
    .login-body .form-control {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .login-body .input-group-text {
        padding: 0.65rem 0.85rem;
    }
    
    .login-body .alert {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
        margin-bottom: 0.75rem !important;
    }
    
    .login-body .alert i {
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .back-to-site {
        margin-top: 0.75rem;
        font-size: 0.85rem;
    }
}

/* Very small laptop screens */
@media (max-height: 650px) {
    .login-header {
        padding: 1rem 1.25rem;
    }
    
    .login-header h3 {
        font-size: 1.2rem;
    }
    
    .login-body {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .login-body .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .login-body .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    .login-body .input-group-text {
        padding: 0.5rem 0.75rem;
    }
    
    .btn-login {
        padding: 0.5rem 1rem;
    }
}

/* =============================================
   Animations
   ============================================= */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

/* Stagger animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* =============================================
   Print Styles
   ============================================= */

@media print {
    .sidebar,
    .top-navbar,
    .btn,
    .alert {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
