/* style.css */

/* CSS Variables for Theme Switching */
:root {
    /* Light Theme (Default) */
    --primary-color: #8B4513; /* Coffee Brown */
    --secondary-color: #D2691E; /* Chocolate */
    --accent-color: #A0522D; /* Sienna */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --navbar-bg: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    --footer-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --hero-bg: linear-gradient(135deg, #f5f5f5 0%, #e9ecef 100%);
    --stat-card-bg: #ffffff;
    --feature-card-bg: #ffffff;
    --module-card-bg: #ffffff;
    --role-card-bg: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #D2691E;
    --secondary-color: #8B4513;
    --accent-color: #A0522D;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --navbar-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --footer-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --hero-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --stat-card-bg: #252525;
    --feature-card-bg: #252525;
    --module-card-bg: #252525;
    --role-card-bg: #252525;
}

[data-theme="coffee"] {
    --primary-color: #6F4E37;
    --secondary-color: #C19A6B;
    --accent-color: #8B7355;
    --bg-color: #f5f1e8;
    --card-bg: #fffaf0;
    --text-color: #3e2723;
    --text-light: #5d4037;
    --border-color: #d7ccc8;
    --shadow: 0 4px 12px rgba(111, 78, 55, 0.1);
    --navbar-bg: linear-gradient(135deg, #6F4E37 0%, #8B7355 100%);
    --footer-bg: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
    --hero-bg: linear-gradient(135deg, #f5f1e8 0%, #e8e0d5 100%);
    --stat-card-bg: #fffaf0;
    --feature-card-bg: #fffaf0;
    --module-card-bg: #fffaf0;
    --role-card-bg: #fffaf0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 76px; /* For fixed navbar */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Navbar */
.navbar {
    background: var(--navbar-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.login-btn {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: var(--hero-bg);
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 8px solid white;
}

/* Feature Cards */
.feature-card {
    background-color: var(--feature-card-bg);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Module Cards */
.module-card {
    background-color: var(--module-card-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: translateY(-5px);
}

.module-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
}

.module-header h4 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.module-header i {
    margin-right: 10px;
}

.module-body {
    padding: 1.5rem;
}

.module-body ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.module-body li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.module-body li:last-child {
    border-bottom: none;
}

.module-body li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Dashboard Preview */
.dashboard-preview-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 2rem;
}

.dashboard-header h3 {
    color: white;
    margin-bottom: 5px;
}

.dashboard-header p {
    margin-bottom: 0;
    opacity: 0.9;
}

.dashboard-cards {
    padding: 2rem;
}

.stat-card {
    background-color: var(--stat-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

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

.stat-icon.total-products {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.stat-icon.total-sales {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
}

.stat-icon.available-stock {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.stat-icon.total-income {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

.stat-info h3 {
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.stat-info p {
    color: var(--text-light);
    margin-bottom: 0;
}

.chart-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 100%;
}

.chart-container h5 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.chart-container h5 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.chart-placeholder {
    height: 250px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-table {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.dashboard-table h5 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.dashboard-table h5 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.table {
    color: var(--text-color);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Role Cards */
.role-card {
    background-color: var(--role-card-bg);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.role-card:hover {
    transform: translateY(-10px);
}

.role-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-card.super-admin .role-header {
    background: linear-gradient(135deg, #FF9800, #FF5722);
}

.role-card.admin .role-header {
    background: linear-gradient(135deg, #2196F3, #03A9F4);
}

.role-card.staff .role-header {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

.role-header h4 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
}

.role-header i {
    margin-right: 10px;
}

.role-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-body {
    padding: 1.5rem;
}

.role-body ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.role-body li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.role-body li:last-child {
    border-bottom: none;
}

.role-body li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: white;
}

.footer h4, .footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style-type: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

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

.footer ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 12px;
    margin-top: 4px;
    color: var(--secondary-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.theme-toggle button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}











/* Add to style.css */

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0px;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.login-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.login-footer {
    font-size: 0.85rem;
}

/* Register Page Styles */
.register-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.register-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.register-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.register-header h2 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Dashboard Page Styles */
.sidebar {
    position: fixed;
    top: 76px;
    left: 0;
    height: calc(100vh - 76px);
    width: 260px;
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
}

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

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.user-details h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.user-details p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.sidebar-menu ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.sidebar-menu i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.main-content {
    margin-left: 260px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.content-header h1 {
    margin-bottom: 0;
}

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

.breadcrumb-item a {
    color: var(--primary-color);
}

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





a.btn.btn-outline-light.btn-lg {
    color: gray;
    border: 2px solid gray;
}
a.btn.btn-outline-light.btn-lg:hover {
    color: rgb(255, 255, 255);
    border: 2px solid rgb(0, 0, 0);
    background-color: #000000;
}





/* Responsive Styles */
@media (max-width: 1199px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .nav-item {
        margin-bottom: 5px;
    }




    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-toggle {
        display: block !important;
    }



}

@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .dashboard-header .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
}

@media (max-width: 575px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    a.navbar-brand {
        font-size: 16px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .feature-card, .module-card, .role-card {
        padding: 1.5rem;
    }
}


.sidebar-toggle {
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
}





/* Add more dashboard-specific styles as needed */