/* BetaNova ERP Suite 360 - Custom Styles */

:root {
    --orange: #FF6B35;
    --orange-dark: #e55a2b;
    --orange-light: #ff8659;
    --purple: #6366F1;
    --purple-dark: #4F46E5;
    --purple-light: #8B5CF6;
    --blue: #3B82F6;
    --green: #10B981;
    --red: #EF4444;
    --yellow: #F59E0B;
    --teal: #14B8A6;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Default purple gradient for non-projects pages */
body:not(.projects-page):not(.dashboard-page) {
    background: #f8f9fa;
}

/* Dashboard page should have white background */
body.dashboard-page {
    background: #f8f9fa;
}

/* Color Classes */
.text-orange { color: var(--orange) !important; }
.bg-orange { background-color: var(--orange) !important; }
.btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
}
.btn-orange:hover, .btn-orange:focus {
    background-color: var(--orange-dark);
    border-color: var(--orange-dark);
    color: white;
}

.bg-blue { background-color: var(--blue) !important; }
.bg-green { background-color: var(--green) !important; }
.bg-red { background-color: var(--red) !important; }
.bg-purple { background-color: var(--purple) !important; }
.bg-yellow { background-color: var(--yellow) !important; }
.bg-teal { background-color: var(--teal) !important; }

.btn-purple {
    background-color: var(--purple-light);
    border-color: var(--purple-light);
    color: white;
}
.btn-purple:hover, .btn-purple:focus {
    background-color: var(--purple-dark);
    border-color: var(--purple-dark);
    color: white;
}

/* Module Grid Layout */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

.module-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
}

.users-icon { background-color: #3B82F6; }
.roles-icon { background-color: #10B981; }
.permissions-icon { background-color: #F59E0B; }
.setup-icon { background-color: #8B5CF6; }

.module-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.module-status {
    font-size: 0.75rem;
    font-weight: 600;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.module-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.module-actions {
    display: flex;
    gap: 10px;
}

.btn-gray {
    background-color: #6b7280;
    border-color: #6b7280;
    color: white;
}

.btn-gray:hover {
    background-color: #4b5563;
    border-color: #4b5563;
    color: white;
}

/* Page Header */
.page-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.page-icon {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-right: 15px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.page-subtitle {
    color: #6b7280;
    margin: 5px 0 0 0;
    font-size: 0.95rem;
}

/* Navigation */
.navbar.bg-orange {
    background-color: var(--orange) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.4rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Brand Icons */
.brand-icon-large {
    font-size: 4rem;
    color: var(--orange);
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Landing Page */
.landing-page {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    min-height: 100vh;
}

.landing-header {
    padding: 20px 0;
}

.logo-triangle {
    width: 50px;
    height: 50px;
    background: var(--orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.hero-content {
    padding: 60px 0;
}

.modules-section {
    padding: 40px 0;
}

/* Module Cards */
.module-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.module-icon.blue { background-color: #3B82F6; }
.module-icon.green { background-color: #10B981; }
.module-icon.red { background-color: #EF4444; }
.module-icon.purple { background-color: #8B5CF6; }
.module-icon.yellow { background-color: #F59E0B; }
.module-icon.teal { background-color: #14B8A6; }
.module-icon.orange { background-color: var(--orange); }
.module-icon.admin { background-color: #FF6B35; }

.module-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.module-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.module-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.module-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.module-features li {
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
}

.module-features i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Footer Section */
.footer-section {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-modules {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 80px;
}

.footer-module:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.footer-module i {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.footer-module span {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Login Page */
.login-container {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    min-height: 100vh;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
}

.test-credentials {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.test-credential {
    background: white;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--gray-300);
    font-family: monospace;
    font-weight: bold;
    color: var(--orange);
}

/* Admin Dashboard */
.admin-container {
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-card {
    color: white;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(25%, -25%);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: none;
}

.admin-card .card-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem;
}

.admin-tool-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
}

.tool-content {
    flex: 1;
}

.tool-content h6 {
    margin-bottom: 0.25rem;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 30px;
    margin-right: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    font-size: 0.875rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.activity-meta {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Module Pages */
.module-container {
    background: var(--gray-100);
    min-height: 100vh;
}

.module-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.settings-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

.settings-card:hover {
    transform: translateY(-4px);
}

.settings-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.settings-features {
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.feature-item i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Project Management */
.project-stat-card {
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin: 1rem 0;
}

/* Error Pages */
.error-container {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-light) 100%);
    min-height: 100vh;
}

.error-content {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.error-icon {
    margin-bottom: 2rem;
}

.error-actions .btn {
    margin: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--gray-100) !important;
    border-top: 1px solid var(--gray-200);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section .container {
        padding: 1rem;
    }
    
    .module-card {
        padding: 1.5rem;
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .module-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .module-quick-item {
        padding: 1rem 0.5rem;
    }
    
    .module-quick-item i {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .brand-icon-large {
        font-size: 3rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card {
    animation: fadeInUp 0.6s ease forwards;
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* Dashboard Layout */
.d-flex {
    display: flex !important;
}

.h-100 {
    height: 100vh !important;
}

/* White Sidebar - Main Navigation */
.sidebar-left {
    width: 250px;
    background: white !important;
    color: #333;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    border-right: 1px solid #e9ecef;
}



.system-logo {
    width: 32px;
    height: 32px;
    background: var(--orange);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.system-logo i {
    color: white;
    font-size: 18px;
}

.sidebar-section {
    padding: 0;
    margin-bottom: 0;
}

.sidebar-section-title {
    padding: 15px 20px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.sidebar-menu-item {
    margin: 0;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0;
}

.sidebar-menu-item a:hover {
    background: var(--orange);
    color: white;
}

.sidebar-menu-item.active a {
    background: var(--orange);
    color: white;
    font-weight: 600;
}

.sidebar-menu-item a i {
    width: 18px;
    margin-right: 10px;
    text-align: center;
    font-size: 14px;
    color: inherit;
}

.submenu-arrow {
    margin-left: auto !important;
    width: auto !important;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.has-submenu.open .submenu-arrow {
    transform: rotate(90deg);
}

.sidebar-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-submenu.show {
    max-height: 1000px;
}

.sidebar-submenu li a {
    display: block;
    padding: 7px 20px 7px 48px;
    font-size: 12px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-submenu li a:hover {
    background: var(--orange);
    color: white;
}

.sidebar-submenu li.active a {
    background: var(--orange);
    color: white;
    font-weight: 600;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.has-submenu.open .submenu {
    max-height: 500px;
}

.submenu li a {
    padding: 10px 20px 10px 52px;
    font-size: 13px;
    color: #6c757d;
}

.submenu li a:hover {
    background: var(--orange);
    color: white;
}

/* Nested submenu styles */
.submenu .has-submenu .submenu {
    background: #e9ecef;
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.submenu .has-submenu.open .submenu {
    max-height: 70vh;
}

.submenu .submenu a {
    padding-left: 70px;
    background: #e9ecef;
    font-size: 12px;
}

/* Third level submenu */
.submenu .submenu .submenu a {
    padding-left: 90px;
    background: #dee2e6;
    font-size: 11px;
}

.submenu .submenu .submenu a:hover {
    background: var(--orange);
    color: white;
}

.submenu .submenu a:hover {
    background: var(--orange);
    color: white;
}

/* Submenu header styles */
.submenu-header {
    padding: 12px 20px 8px 40px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #495057 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    background: #e9ecef !important;
    border-top: 1px solid #dee2e6;
    margin-top: 8px;
    cursor: default !important;
}

.submenu-header:hover {
    background: #e9ecef !important;
    color: #495057 !important;
}

.submenu-header i {
    margin-right: 8px;
    color: var(--orange) !important;
    font-size: 12px;
}

.sidebar-user {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.user-avatar i {
    color: #6c757d;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-role {
    font-size: 12px;
    color: #6c757d;
}

/* Main Content Area */
.main-content {
    flex: 1;
    background: #f8f9fa;
    overflow-y: auto;
}

.top-header {
    background: white;
    padding: 15px 20px;
    border-bottom: none;
    box-shadow: none;
}

.page-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-right: 40px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.dashboard-content {
    flex: 1;
    padding: 0 20px 20px 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-title {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-icon {
    background: #fff3cd;
    color: #b08800;
}

.transactions-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.items-icon {
    background: #fff3cd;
    color: #b08800;
}

.branches-icon {
    background: #d1ecf1;
    color: #0c5460;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

.stat-change.neutral {
    color: #6c757d;
}

/* Data Section */
.data-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.data-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab:hover {
    background: #fff;
    color: #495057;
}

.tab.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: white;
}

.data-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.data-header h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.data-actions {
    display: flex;
    gap: 8px;
}

.filter-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-btn {
    margin-top: 24px;
    height: 38px;
}

/* Table Styling */
.table-responsive {
    padding: 0 20px 20px;
}

/* Override table-responsive padding for CRUD cards */
.crud-card .table-responsive {
    padding: 0;
    margin: 0;
    border-radius: 0;
}

/* Ensure CRUD table touches edges */
.crud-card .crud-table {
    margin: 0;
    border-radius: 0;
    width: 100%;
}

.table thead th {
    border-top: none;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    padding: 12px 8px;
}

.table tbody td {
    padding: 12px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}

/* ================================
   CRUD PAGES - COMMON PATTERNS
   ================================ */

/* Page Layout - Full Page Container */
.crud-page {
    background: #ffffff !important;
}

.crud-container {
    padding: 1.5rem;
}

/* Page Header Section */
.crud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.crud-header-content {
    display: flex;
    align-items: center;
}

.crud-icon {
    color: #FF6B35;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    margin-right: 1rem;
}

.crud-title {
    margin-bottom: 0;
    font-weight: bold;
}

.crud-subtitle {
    color: #6c757d;
    margin-bottom: 0;
}

.crud-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Statistics Section */
.crud-stats-container {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.crud-stat-item {
    text-align: center;
}

.crud-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #6366F1;
    line-height: 1;
}

.crud-stat-label {
    font-size: 0.875rem;
    color: #64748B;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Main Data Card */
.crud-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    background: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.crud-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.crud-card-header {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #dee2e6;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem;
}

.crud-card-header h5 {
    color: #000000 !important;
    margin: 0;
    font-weight: 600;
    font-size: 1.2rem;
}

.crud-card-body {
    padding: 0;
    position: relative;
}

/* Table Styling for CRUD */
.crud-table {
    border-radius: 15px;
    overflow: hidden;
    background: white;
    margin-bottom: 0;
}

.crud-table thead th {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    border: none;
    font-weight: 600;
    color: #475569;
    padding: 1rem;
    font-size: 0.9rem;
}

.crud-table tbody td {
    padding: 1rem;
    border-top: 1px solid #F1F5F9;
    vertical-align: middle;
}

.crud-table tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05);
}

/* Action Buttons in Tables */
.crud-action-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 4px;
    margin-right: 0.25rem;
    border: none;
    transition: all 0.2s ease;
}

.crud-btn-edit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.crud-btn-edit:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
}

.crud-btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.crud-btn-delete:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    color: white;
}

.crud-btn-view {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.crud-btn-view:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: white;
}

/* Primary Action Buttons */
.crud-btn-primary {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.crud-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5B5FE8 0%, #7C3AED 100%);
    color: white;
}

.crud-btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #EAB308 100%);
    border: none;
    color: white;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.crud-btn-warning:hover {
    background: linear-gradient(135deg, #D97706 0%, #CA8A04 100%);
    color: white;
}

.crud-btn-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: white;
}

.crud-btn-danger:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
}

.crud-back-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.crud-back-btn:hover {
    background: #4b5563;
    color: white;
}

/* Form Controls for CRUD */
.crud-form-control, .crud-form-select {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.crud-form-control:focus, .crud-form-select:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    background: white;
}

/* Modal Styling for CRUD */
.crud-modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background-color: white !important;
}

.crud-modal-header {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
}

.crud-modal-title {
    color: white;
    font-weight: 600;
}

.crud-modal-body {
    padding: 2rem;
    background-color: white !important;
}

.crud-modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
    background-color: white !important;
    border-radius: 0 0 20px 20px;
}

/* Badge Styling for CRUD */
.crud-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.crud-badge-success {
    background-color: #198754 !important;
    color: white !important;
}

.crud-badge-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

.crud-badge-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    font-weight: 500;
}

/* Loading States */
.crud-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: 15px;
}

.crud-spinner {
    color: #6366F1;
}

/* Empty State */
.crud-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.crud-empty-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.crud-empty-title {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.crud-empty-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Utility Classes for CRUD */
.crud-text-center {
    text-align: center !important;
}

.crud-text-muted {
    color: #6c757d !important;
}

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

.crud-fw-bold {
    font-weight: 700 !important;
}

.crud-mb-0 {
    margin-bottom: 0 !important;
}

.crud-me-2 {
    margin-right: 0.5rem !important;
}

.crud-gap-2 {
    gap: 0.5rem !important;
}

/* Navigation Buttons with Spinners */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4F46E5;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.nav-btn:hover {
    background: #E0E7FF;
    color: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    cursor: default;
}

.nav-btn.active:hover {
    transform: none;
    box-shadow: none;
}

.nav-btn .spinner-border {
    width: 14px;
    height: 14px;
    border-width: 2px;
    display: none;
}

.nav-btn.loading .spinner-border {
    display: inline-block;
}

.nav-btn.loading .nav-icon {
    display: none;
}

.nav-separator {
    color: #9CA3AF;
    font-size: 1rem;
}

/* Legacy breadcrumb override for consistency */
.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #4F46E5;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6B7280;
}
