/* ===================================
   Digital Produk - Custom Styles
   =================================== */

:root {
    /* Envato/Codecanyon-inspired palette */
    --primary-color: #82b440;
    --primary-dark: #6f9a37;
    --secondary-color: #2c3e50;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Compact base sizing */
html {
    font-size: 14px;
}

/* Global Styles */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button, input, select, textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    color: var(--text-primary);
    background-color: #f8f9fa;
    overflow-x: hidden;
    font-weight: 400;
    line-height: 1.5;
    font-size: 0.875rem;
}

h1 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.5rem;
}

h2 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.25rem;
}

h3 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.125rem;
}

h4 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem;
}

h5 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9375rem;
}

h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.8125rem;
}

.fw-bold, strong, b {
    font-weight: 600 !important;
}

.fw-semibold {
    font-weight: 500 !important;
}

/* Bootstrap Override */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

.form-control, .form-select {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
}

.form-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
    font-weight: 500;
}

.nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
    font-weight: 400;
}

.navbar-brand {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.125rem;
    font-weight: 600;
}

.dropdown-item {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
}

.card-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-text {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
}

.badge {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.6875rem;
    font-weight: 500;
}

.alert {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8125rem;
}

p, span, div, a {
    font-size: 0.8125rem;
}

small, .small {
    font-size: 0.75rem !important;
}

.text-muted {
    font-size: 0.75rem;
}

/* Page Transition */
.page-content {
    animation: pageSlideIn 0.4s ease-out;
}

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

/* Navbar Styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1f2a35 100%);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-custom .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem !important;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.navbar-custom .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 2rem 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
}

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

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-custom .card-body {
    padding: 1.5rem;
}

.card-custom .card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card-custom .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Product Card */
.product-card {
    position: relative;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
}

/* Button Styles */
.btn-custom {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

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

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

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Stats Card */
.stats-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

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

.stats-card .stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.stats-card.primary .stats-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.stats-card.success .stats-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.stats-card.warning .stats-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.stats-card.info .stats-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* Search Bar */
.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar input {
    border-radius: 3rem;
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar .list-group-item {
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar .list-group-item:hover {
    background: var(--light-color);
    padding-left: 1.5rem;
}

.sidebar .list-group-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

/* Table Styles */
.table-custom {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table-custom thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table-custom tbody tr {
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background: var(--light-color);
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badge Styles */
.badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Alert Styles */
.alert-custom {
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer-custom {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-custom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom a:hover {
    color: white;
}

/* Breadcrumb */
.breadcrumb-custom {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

/* Form Styles */
.form-control-custom {
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .product-card .product-image {
        height: 180px;
    }
}

/* Utility Classes */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 1rem;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Review Stars */
.review-stars {
    color: #fbbf24;
    font-size: 1.25rem;
}

/* Price Tag */
.price-tag {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    display: inline-block;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.empty-state p {
    color: var(--text-secondary);
}


/* ===================================
   Enhanced Dashboard Styles
   =================================== */

/* Admin Sidebar */
.admin-sidebar {
    background: white;
    min-height: calc(100vh - 80px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 80px;
}

.admin-sidebar .nav-link {
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    font-size: 0.875rem;
}

.admin-sidebar .nav-link:hover {
    background: var(--light-color);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 2rem;
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.admin-sidebar .nav-link i {
    font-size: 1.125rem;
    width: 20px;
}

/* Dashboard Stats Cards */
.dashboard-stat-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.dashboard-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.dashboard-stat-card.primary .stat-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.dashboard-stat-card.success .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.dashboard-stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.dashboard-stat-card.danger .stat-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.dashboard-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.dashboard-stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.dashboard-stat-card .stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.dashboard-stat-card .stat-change.up {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.dashboard-stat-card .stat-change.down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Chart Card */
.chart-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.chart-card .chart-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-card .chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 2rem;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.activity-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    z-index: 1;
}

.activity-item .activity-content {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.activity-item .activity-content:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.activity-item .activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Quick Actions */
.quick-action-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.quick-action-card .action-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.quick-action-card .action-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.quick-action-card .action-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Data Table Enhanced */
.data-table-wrapper {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.data-table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-table-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.data-table {
    width: 100%;
}

.data-table thead {
    background: var(--light-color);
}

.data-table thead th {
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.data-table tbody td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.875rem;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: var(--light-color);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge Enhanced */
.badge-status {
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.badge-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-status.inactive {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.badge-status.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-status.completed {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.view {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.action-btn.edit {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Progress Bar */
.progress-custom {
    height: 8px;
    border-radius: 1rem;
    background: var(--light-color);
    overflow: hidden;
}

.progress-custom .progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 1rem;
    transition: width 0.6s ease;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hover Card Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Tooltip */
.tooltip-custom {
    position: relative;
    display: inline-block;
}

.tooltip-custom .tooltip-text {
    visibility: hidden;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
    white-space: nowrap;
}

.tooltip-custom:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Modal Enhancement */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

/* Dropdown Menu Enhanced */
.dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
}

/* Breadcrumb Enhanced */
.breadcrumb-enhanced {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.breadcrumb-enhanced .breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-enhanced .breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-enhanced .breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Page Header */
.page-header {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.page-header .page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-header .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}


/* ===================================
   Admin Layout Full Width
   =================================== */

.admin-sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    overflow-y: auto;
    z-index: 1000;
}

.admin-layout .admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #f8f9fa;
    padding: 2rem;
    width: calc(100% - 260px);
}

/* Admin Profile Section */
.admin-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-profile .avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

/* Nav Section Title */
.nav-section-title {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.nav-section-title:first-child {
    margin-top: 0;
}

/* Responsive Admin Layout */
@media (max-width: 991px) {
    .admin-sidebar-wrapper {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .admin-layout .admin-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .admin-sidebar-wrapper {
        width: 240px;
    }
    
    .admin-layout .admin-content {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

@media (min-width: 1200px) {
    .admin-sidebar-wrapper {
        width: 260px;
    }
    
    .admin-layout .admin-content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
}

@media (min-width: 1400px) {
    .admin-sidebar-wrapper {
        width: 280px;
    }
    
    .admin-layout .admin-content {
        margin-left: 280px;
        width: calc(100% - 280px);
        padding: 2.5rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .admin-sidebar-wrapper {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar-wrapper.show {
        transform: translateX(0);
    }
}

/* Full Width Content */
.admin-content .container-fluid {
    max-width: 100%;
    padding: 0;
}

.admin-content .row {
    margin: 0 -0.75rem;
}

.admin-content .row > * {
    padding: 0 0.75rem;
}
