/* Role Management System - Main Styles */

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #20c997, #17a2b8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.3);
}

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

.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.brand-subtitle {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0 0;
}

/* Auth Card Styles */
.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: white;
    color: #333;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.auth-content {
    padding: 30px;
}

/* Role Selection Styles */
.role-section {
    margin-bottom: 25px;
}

.role-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.role-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.role-card:hover {
    border-color: #20c997;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.15);
}

.role-card.selected {
    border-color: #20c997;
    background: #f0fdfa;
}

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

.role-icon.customer {
    background: #20c997;
}

.role-icon.admin {
    background: #dc3545;
}

.role-icon.show-owner {
    background: #6f42c1;
}

.role-icon.delivery {
    background: #fd7e14;
}

.role-icon i {
    color: white;
    font-size: 18px;
}

.role-info {
    flex: 1;
}

.role-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.role-description {
    font-size: 12px;
    color: #666;
    margin: 2px 0 0 0;
}

.role-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #20c997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card.selected .role-check {
    opacity: 1;
}

.role-check i {
    color: white;
    font-size: 12px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #20c997;
    background: white;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.input-group .form-control {
    padding-left: 20px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: #20c997;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #20c997, #17a2b8);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.4);
}

/* Footer Styles */
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #20c997;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.terms-text {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    .auth-card {
        margin: 20px;
        max-width: none;
    }
    
    .auth-content {
        padding: 20px;
    }
}

/* Dashboard Styles */
body.dashboard {
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
}

.card-header {
    font-weight: bold;
}

.btn {
    font-size: 12px;
}

.table {
    font-size: 12px;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #343a40;
    transition: all 0.3s;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 1rem;
    background-color: #495057;
    border-bottom: 1px solid #6c757d;
}

.sidebar-brand {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.sidebar-brand i {
    margin-right: 10px;
}

.sidebar.collapsed .sidebar-brand span {
    display: none;
}

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

.sidebar-menu li {
    border-bottom: 1px solid #495057;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background-color: #495057;
    color: white;
}

.sidebar-menu a.active {
    background-color: #007bff;
    color: white;
}

.sidebar-menu i {
    width: 20px;
    margin-right: 10px;
}

.sidebar.collapsed .sidebar-menu span {
    display: none;
}

.main-content {
    margin-left: 250px;
    transition: all 0.3s;
    min-height: 100vh;
    width: calc(100% - 250px);
}

.main-content.expanded {
    margin-left: 60px;
    width: calc(100% - 60px);
}

.sidebar-toggle {
    background-color: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 15px;
    font-size: 16px;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.content-wrapper {
    padding: 20px;
    min-height: calc(100vh - 200px);
    width: 100%;
    background-color: #f8f9fa;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.main-content.expanded .footer-fixed {
    left: 60px;
}

.main-content .footer-fixed {
    left: 250px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .main-content.expanded {
        margin-left: 0;
        width: 100%;
    }
    
    .main-content .footer-fixed {
        left: 0;
    }
    
    .main-content.expanded .footer-fixed {
        left: 0;
    }
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: inline-block;
    }
}

/* Admin Login Styles */
.admin-login-card {
    border: 2px solid #dc3545;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.15);
}

.admin-badge {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    text-align: center;
    font-weight: 600;
    margin: -20px -20px 20px -20px;
}

.admin-badge i {
    margin-right: 8px;
}

.admin-login-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.admin-login-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.admin-login-link:hover {
    color: #c82333;
    text-decoration: underline;
}

.admin-link {
    margin-top: 15px;
    text-align: center;
}

/* Dashboard Styles */
.dashboard-content {
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
}

.dashboard-header p {
    color: #666;
    font-size: 14px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #20c997, #17a2b8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.stat-icon i {
    color: white;
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.stat-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.dashboard-actions .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dashboard-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Dashboard Responsive Design */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
}

/* Admin Layout Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50, #34495e);
    color: white;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-header.collapsed h3 {
    display: none;
}

.sidebar-menu {
    padding: 20px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border-left-color: #3498db;
}

.menu-item.active {
    background-color: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
}

.menu-item i {
    width: 20px;
    margin-right: 10px;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar.collapsed .menu-item i {
    margin-right: 0;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 250px;
    transition: all 0.3s ease;
    width: calc(100vw - 250px);
}

.main-content.expanded {
    margin-left: 70px;
    width: calc(100vw - 70px);
}

/* Header */
.admin-header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    margin-right: 20px;
    cursor: pointer;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-details h6 {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.user-details small {
    color: #666;
}

/* Content Area */
.content-area {
    padding: 30px;
    width: 100%;
    max-width: none;
}

/* Footer */
.admin-footer {
    background: white;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* Admin Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100vw;
    }
    
    .main-content.expanded {
        margin-left: 0;
        width: 100vw;
    }
    
    .content-area {
        padding: 15px;
    }
}

/* Admin Cards */
.stats-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.stats-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.stats-card p {
    color: #666;
    margin: 0;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stats-icon.users { background: linear-gradient(135deg, #3498db, #2980b9); }
.stats-icon.roles { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.stats-icon.active { background: linear-gradient(135deg, #27ae60, #229954); }
.stats-icon.pending { background: linear-gradient(135deg, #f39c12, #e67e22); }

/* Bottom Navigation Footer */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    height: 65px;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 60px;
    text-decoration: none;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

.bottom-nav .nav-item span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    display: block;
}

.bottom-nav .nav-item.active i {
    color: #007bff;
}

.bottom-nav .nav-item.active span {
    color: #007bff;
    font-weight: 600;
}

.bottom-nav .nav-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.bottom-nav .nav-item:hover i {
    color: #007bff;
}

.bottom-nav .nav-item:hover span {
    color: #007bff;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Add padding to body to prevent content from being hidden behind fixed footer */
body {
    padding-bottom: 80px;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}

/* Food Delivery App Styles */
.app-header {
    background: linear-gradient(135deg, #318f47, #27cd9b);
    color: white;
    /* position: sticky; */
    /* top: 0; */
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
}

.location-info i {
    font-size: 14px;
}

.delivering-to {
    font-size: 12px;
    opacity: 0.9;
}

.location-name {
    font-size: 14px;
    font-weight: 600;
}

.search-container {
    position: relative;
}

.search-icon {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.search-input {
    padding: 12px 15px 12px 45px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Category Cards */
.category-card {
    width: 100%;
    padding: 15px 8px;
    background: white;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card.active {
    background: #e8f5e8;
    border-color: #28a745;
}

.category-card i {
    font-size: 20px;
    margin-bottom: 6px;
    display: block;
}

.category-card.active i {
    color: #28a745;
}

.category-card span {
    font-size: 11px;
    font-weight: 500;
    color: #333;
}

.category-card.active span {
    color: #28a745;
    font-weight: 600;
}

/* Shop Cards */
.shop-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Navigation */
.bottom-nav {
    z-index: 1000;
}

.nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-item.active i {
    color: #28a745;
}

.nav-item.active span {
    color: #28a745;
    font-weight: 600;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item:hover i {
    color: #28a745;
}

.nav-item:hover span {
    color: #28a745;
}

.cart-badge {
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 576px) {
    .category-card {
        height: 70px;
        padding: 12px 6px;
    }
    
    .category-card i {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .category-card span {
        font-size: 10px;
    }
    
    .shop-image {
        width: 60px;
        height: 60px;
    }
    
    .search-input {
        font-size: 13px;
        padding: 10px 12px 10px 40px;
    }
    
    .search-icon {
        font-size: 14px;
        left: 12px;
    }
}

/* Ensure full width layout */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

.container-fluid {
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Shop Owner Layout Styles */
.shop-owner-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1;
}

.footer-wrapper {
    margin-top: auto;
    padding-bottom: 80px;
}