/* ============================================
   Admin Panel Styles
   ============================================ */

/* CSS Variables */
:root {
    --sidebar-width: 300px;
    --primary: #ec252e;
    --dark: #000;
    --sidebar-bg: #000;
    --sidebar-hover: #ec252e;
    --header-bg: #ffffff;
    --main-bg: #f8f9fa;
    --bs-link-color-rgb: 236, 37, 46 !important;
    --bs-btn-bg: #ec252e !important;
    --bs-heading-color: #000 !important;
    --bs-link-hover-color: #0a58ca;
    --bs-link-hover-color-rgb: 0, 0 , 0;
    --bs-warning-rgb : 199 ,149 ,0 ;
}

/* ============================================
   Admin Layout Styles
   ============================================ */

body {
    font-family: "helvetica", sans-serif;
    background-color: var(--main-bg);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    padding: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s;
}

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

.sidebar-header h4 {
    margin: 0;
    color: white;
    font-weight: 600;
}

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

.sidebar-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: var(--sidebar-hover);
    color: white;
    padding-left: 25px;
}

.sidebar-menu a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.admin-header {
    background-color: var(--header-bg);
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h5 {
    margin: 0;
    color: #000;
    font-weight: bold;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-wrapper {
    padding: 30px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    font-weight: 600;
}

/* Button Styles */
.btn-primary,
.btn-danger {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-danger:hover {
    background-color: var(--dark);
    border-color: var(--dark);
}
.btn-secondary {
    background-color: var(--dark);
    border-color: var(--dark);
}
.btn-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-secondary {
    border-color: var(--dark);
    color: #000;
}
.btn-info,
.bg-info {
    background-color: var(--dark) !important;
    border-color: var(--dark);
    color: #fff;

}
.btn-info:hover {
    background-color: var(--bs-secondary-color);
    border-color: var(--bs-secondary-color);
}
.btn-info i {
    color: #fff;
}
.btn-success {
    background: #055731 !important;
}

/* ============================================
   Admin Login Styles
   ============================================ */

/* Login Page Body */
body.login-page {
    background: linear-gradient(135deg, #fdcbcb 0%, #ec252e 50%, #fdcbcb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #292929 0%, #000000 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-header h3 {
    margin: 0;
    font-weight: 600;
}

.login-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-body {
    padding: 30px;
}

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

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #000;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.btn-login {
    background: linear-gradient(135deg, #292929 0%, #000 100%);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    color: white;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert {
    border-radius: 8px;
    border: none;
}

/* Custom csss */

td .btn-group {
    gap: 5px;
}
nav[role="navigation"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
nav[role="navigation"] svg {
    width: 24px;
}
nav[role="navigation"] a {
    background: #e8e8e8 !important;
    color: #000;
}
nav[role="navigation"] .inline-flex span {
    min-width: 45px;
}
nav[role="navigation"] .hidden span.inline-flex {
    display: flex;
    flex-wrap: wrap;
}
.btn,
.badge {
    border-radius: 0 !important;
}
.mobilesidebartog{
    background: #fff;
    padding: 2px 5px 0;
    display: none;
}
.mobsideabarclose{
    display: none;
}
body.sidebaractive {
    overflow: hidden;
}
body.sidebaractive .main-content {
    filter: opacity(0.6);
}
/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .mobilesidebartog{
        display: block;
    }
    .mobsideabarclose{
        display: block;
    }
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.active {
        margin-left: 0;
    }
    .sidebar.show {
        margin-left: 0;
    }

    .main-content {
        margin-left: 0;
    }
    .sidebar-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-header img{
        width:calc(100% - 40px) !important;
    }
}
