/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Logout button styles */
.sidebar .nav li.logout-item {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

.sidebar .nav li.logout-item .nav-link {
    color: #ff0000 !important;
    margin: 10px 15px 0;
    opacity: 1;
}

.sidebar .nav li.logout-item .nav-link i {
    color: #ff0000;
}
.account-menu i {
    font-size: 28px !important;
}
.sidebar .nav li.logout-item .nav-link:hover {
    background: rgba(244, 67, 54, 0.1);
    opacity: 1;
}

.sidebar .nav li.logout-item .nav-link p {
    margin: 0;
}

/* Ensure sidebar wrapper has enough height for logout button */
.sidebar .sidebar-wrapper {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: 0px;
}

/* Content Layout */
.content-wrapper {
    padding: 20px;
    margin-top: 0px !important;
}
.sidebar .nav li:first-child>a {
    margin: 0 0px !important;
}
.sidebar .nav li a, .sidebar .nav li .dropdown-menu a {
    margin: 10px 0px 0 !important;
    padding: 10px 0px !important;
}
.content-header {
    margin-bottom: 0px;
}

.content-header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

.content-header .text-muted {
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Card Styles */
.card {
    margin-bottom: 30px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
}

.card .card-header {
    padding: 15px 20px;
    margin: -20px 15px 0;
    border-radius: 3px;
    background: #f5f5f5;
    box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14),
        0 7px 10px -5px rgba(0, 0, 0, 0.2);
}

.card .card-header h3 {
    color: #212121;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 0;
}

.card .card-body {
    padding: 20px;
}

/* Main Panel */
.main-panel {
    position: relative;
    float: right;
    width: calc(100% - 260px);
    transition: 0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .main-panel {
        width: 100%;
    }

    .content-wrapper {
        padding: 15px;
        margin-top: 0px;
    }
}

/* Login and Reset Password Pages Styles - Modern Design */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: #f8fafc;
}

.card-login {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 45px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.card-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

.login-title {
    text-align: center;
    margin-bottom: 35px;
}

.login-title h3 {
    color: #1a202c;
    font-weight: 700;
    font-size: 28px;
    margin: 0;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 10px;
    position: relative;
}

.form-control {
    height: 50px !important;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    width: 100%;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2d3748;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    border-color: #f5621c;
    box-shadow: 0 0 0 4px rgba(245, 98, 28, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.btn-orange {
    background: #f5621c;
    color: white;
    border: none;
    border-radius: 12px;
    height: 50px;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    margin-top: 0px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-orange:hover {
    background: #e05518;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 98, 28, 0.25);
}

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

.forgot-password {
    text-align: center;
    margin-bottom: 25px;
}

.forgot-password a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5621c;
    transition: width 0.2s ease;
}

.forgot-password a:hover {
    color: #f5621c;
}

.forgot-password a:hover::after {
    width: 100%;
}

/* Password Field Styles - Enhanced */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 25px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #f5621c;
    background: rgba(245, 98, 28, 0.1);
}

.password-field .form-control {
    padding-right: 55px;
}

.password-toggle .fa {
    font-size: 18px;
}

/* Logo Styling */
.card-login svg {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-login:hover svg {
    transform: scale(1.02);
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
    display: block;
}

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

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #e3f2fd;
    color: #1976d2;
}

/* Back to Login Link */
.back-to-login {
    text-align: center;
    margin-top: 25px;
}

.back-to-login a {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.back-to-login a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5621c;
    transition: width 0.2s ease;
}

.back-to-login a:hover {
    color: #f5621c;
}

.back-to-login a:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .card-login {
        padding: 35px 25px;
        margin: 20px;
    }
    
    .login-title h3 {
        font-size: 24px;
    }
    
    .form-control {
        height: 52px;
        padding: 14px 18px;
    }
    
    .btn-orange {
        height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .card-login {
        padding: 30px 20px;
    }
    
    .login-container {
        padding: 30px 15px;
    }
}

/* Dashboard Stats Cards */
.stats-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

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

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.stats-icon i {
    font-size: 20px;
    color: #ffffff;
}

/* Icon backgrounds */
.stats-icon.traffic {
    background: #ff4081;
}

.stats-icon.users {
    background: #ff6b6b;
}

.stats-icon.sales {
    background: #ffd93d;
}

.stats-icon.performance {
    background: #4ecdc4;
}

.stats-info {
    width: 100%;
}

.stats-label {
    color: #8c8c8c;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-number {
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.stats-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
}

.stats-trend.positive {
    color: #4caf50;
}

.stats-trend.negative {
    color: #f44336;
}

.stats-trend i {
    font-size: 16px;
}

.trend-period {
    color: #8c8c8c;
    margin-left: 4px;
}

/* Responsive adjustments for stats */
@media (max-width: 1200px) {
    .stats-number {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .stats-card {
        padding: 15px;
    }

    .stats-number {
        font-size: 22px;
    }

    .stats-label {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 12px;
    }

    .stats-number {
        font-size: 20px;
    }

    .stats-label {
        font-size: 11px;
    }

    .stats-trend {
        font-size: 12px;
    }

    .stats-icon {
        width: 35px;
        height: 35px;
    }

    .stats-icon i {
        font-size: 18px;
    }
}

/* Section Headers */
.section-header {
    margin: 20px 0 20px;
}

.section-header h4 {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.section-header p {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

/* Order Cards */
.order-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

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

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

.order-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.warning {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.success {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge.danger {
    background: #ffeaea;
    color: #f44336;
}

.order-body {
    margin-bottom: 20px;
}

.order-info {
    margin-bottom: 12px;
}

.info-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.info-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

/* User Cards */
.user-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.3s ease;
}

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

.user-avatar {
    width: 60px;
    height: 60px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.user-avatar i {
    font-size: 30px;
    color: #666;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px;
}

.user-email {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
}

.user-joined {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.user-joined i {
    font-size: 16px;
}

/* Common Card Footer */
.view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #f5621c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.view-details:hover {
    color: #d14b13;
}

.view-details:hover i {
    transform: translateX(3px);
}

.col-xl-3.col-md-6.col-sm-6 {
    margin-bottom: 20px;
}
.navbar .navbar-brand svg {
    width: auto;
    height: 100%;
}
/* Back Button */
.back-btn {
    background: white;
    color: #f5621c;
    padding: 0 !important;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px !important;
}

/* Role Badge */
.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

label.text-muted { 
    font-weight: bold; 
}