/* Modern Clean Style - Inspired by mobile app design */

:root {
    --primary-color: #1d1d1d;
    --secondary-color: #00d4aa;
    --accent-green: #00d4aa;
    --accent-yellow: #2c2c2c;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-light: #e9ecef;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Global Styles */
body {
    background-color: var(--background-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Modern Cards */
.modern-card {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: none;
    margin-bottom: 24px;
    overflow: hidden;
}

.modern-card-header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modern-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-card-body {
    padding: 0;
}

/* Modern Table */
.modern-table-container {
    background: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modern-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background: linear-gradient(135deg, var(--accent-yellow), #000000);
    color: white;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-table thead th:first-child {
    border-radius: var(--border-radius) 0 0 0;
}

.modern-table thead th:last-child {
    border-radius: 0 var(--border-radius) 0 0;
}

/* Filter Row */
.modern-table .filter-row th {
    background: #fef9f3;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
}

.modern-table .filter-row input,
.modern-table .filter-row select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}

.modern-table .filter-row input:focus,
.modern-table .filter-row select:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(246, 187, 114, 0.1);
    outline: none;
}

/* Table Body */
.modern-table tbody tr {
    background: var(--background-white);
    transition: all 0.2s ease;
}

.modern-table tbody tr:hover {
    background: #fafbfc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modern-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 14px;
}

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

/* Action Buttons */
.modern-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 14px;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.modern-btn-primary {
    background: linear-gradient(135deg, var(--accent-yellow), #0f0f0f);
    color: white;
}

.modern-btn-success {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
    color: white;
}

.modern-btn-info {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
}

.modern-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    color: white;
}

.modern-btn-secondary {
    background: #f8f9fa;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* Search and Filter Section */
.modern-filter-section {
    background: var(--background-white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
}

.modern-search-btn {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Pagination */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: var(--background-white);
    border-top: 1px solid var(--border-light);
}

.modern-pagination .pagination {
    display: flex;
    gap: 8px;
    margin: 0;
    list-style: none;
    padding: 0;
}

.modern-pagination .pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.modern-pagination .pagination li.active a,
.modern-pagination .pagination li a:hover {
    background: linear-gradient(135deg, var(--accent-yellow), #f8c471);
    color: white;
    border-color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Status Indicators */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

/* Avatar/Photo Styles */
.modern-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

/* Counter/Stats */
.modern-counter {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-card-header {
        padding: 16px 20px;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 12px 16px;
    }
    
    .modern-card-title {
        font-size: 18px;
    }
    
    .modern-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .modern-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

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

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

/* Custom Scrollbar */
.modern-table-container::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.modern-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modern-table-container::-webkit-scrollbar-thumb {
    background: var(--accent-yellow);
    border-radius: 4px;
}

.modern-table-container::-webkit-scrollbar-thumb:hover {
    background: #f39c12;
}/* Additi
onal Modern Styles */

/* Content area adjustment for sidebar */
.content-page {
    margin-left: 280px;
    min-height: 100vh;
    background: var(--background-light);
    transition: margin-left 0.3s ease;
}

/* Ensure main content wrapper also has proper spacing */
#wrapper {
    position: relative;
}

/* Additional spacing for content inside content-page */
.content-page .content {
    padding: 0 24px 24px 24px;
}

@media (max-width: 768px) {
    .content-page {
        margin-left: 0;
    }
    
    .content-page .content {
        padding: 0 16px 16px 16px;
    }
}

/* Modern Header */
.modern-header {
    background: var(--background-white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 99;
    margin-bottom: 0;
}

.modern-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modern-header-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Breadcrumb */
.modern-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

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

.modern-breadcrumb .breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 600;
}

.modern-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
    font-weight: 400;
}

/* License Notice Styling */
.license-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #f6c23e;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.license-notice .icon {
    width: 24px;
    height: 24px;
    background: #f39c12;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.license-notice .content {
    flex: 1;
}

.license-notice .title {
    font-weight: 600;
    color: #856404;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.license-notice .message {
    color: #856404;
    margin: 0;
    font-size: 13px;
}

/* Form Styles */
.modern-form {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 24px;
    margin-bottom: 24px;
}

.modern-form-group {
    margin-bottom: 20px;
}

.modern-form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.modern-form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: var(--background-white);
}

.modern-form-control:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(246, 187, 114, 0.1);
    outline: none;
}

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

/* Button Styles */
.modern-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.modern-btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.modern-btn-primary-lg {
    background: linear-gradient(135deg, var(--accent-yellow), #f8c471);
    color: white;
}

.modern-btn-success-lg {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
    color: white;
}

/* Alert Styles */
.modern-alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modern-alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.modern-alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.modern-alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.modern-alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

/* Stats Cards */
.stats-card {
    background: var(--background-white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: all 0.2s ease;
}

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

.stats-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.stats-card-icon.primary {
    background: linear-gradient(135deg, var(--accent-yellow), #f8c471);
}

.stats-card-icon.success {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
}

.stats-card-icon.info {
    background: linear-gradient(135deg, #3498db, #5dade2);
}

.stats-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stats-card-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(246, 187, 114, 0.1);
    color: var(--accent-yellow);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Utility Classes */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--accent-yellow), #f8c471);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-gradient-success {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--accent-yellow), #f8c471);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--accent-green), #26d0ce);
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}

button:focus,
.modern-btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 187, 114, 0.2);
}/* Bo
dy and wrapper adjustments */
body.modern-layout {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure wrapper takes full width */
#wrapper {
    width: 100%;
    min-height: 100vh;
}

/* Fix for any potential Bootstrap conflicts */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Ensure content doesn't get hidden behind sidebar */
.content-page .container-fluid {
    width: 100%;
    max-width: none;
}

/* Additional mobile fixes */
@media (max-width: 768px) {
    .modern-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .modern-sidebar.show {
        transform: translateX(0);
    }
    
    /* Overlay for mobile menu */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}