/* Master Theme Import File */
/* =========================================================
  THEME: GREEN
  ========================================================= */
.theme-green {
    --color-white: #fff;
    --color-black: #000;
    --color-primary: #01411C;
    --color-secondary: #0A5C2E;
    --color-accent: #20c997;
    --color-text: #212529;
    --color-text-light: #6c757d;
    --color-text-inverse: #ffffff;
    --color-bg: #f8f9fa;
    --color-bg-dark: #e9ecef;
    --color-border: #dee2e6;
    --color-success: #198754;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #0dcaf0;
    --gradient-primary: linear-gradient(135deg, #01411C 0%, #0A5C2E 50%, #01411C 100%);
    --gradient-secondary: linear-gradient(135deg, #0A5C2E 0%, #20c997 100%);
    --gradient-accent: linear-gradient(135deg, #20c997 0%, #198754 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --transition: all 0.3s ease-in-out;
    --transition-fast: all 0.15s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: "Inter", "Roboto", sans-serif;
    transition: var(--transition);
}
 
/* ------------------------
   LAYOUT STRUCTURES
------------------------ */
.container-scroller {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-body-wrapper {
    flex: 1;
    display: flex;
    min-height: calc(100vh - 56px);
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.content-wrapper {
    flex: 1;
    padding: 20px;
    background-color: var(--color-bg);
}

/* ------------------------
   NAVBAR STYLES
------------------------ */
.theme-green .navbar {
    background: var(--gradient-primary) !important;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border: none;
}

.theme-green .navbar-brand {
    color: var(--color-text-inverse) !important;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.theme-green .navbar-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.theme-green .nav-item {
    margin: 0 0.25rem;
}

.theme-green .nav-link {
    color: var(--color-text-inverse) !important;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .theme-green .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        text-decoration: none;
    }

    .theme-green .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        font-weight: 600;
    }

/* Navbar Profile */
.nav-profile-img {
    position: relative;
    display: inline-block;
}

.availability-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
}

    .availability-status.online {
        background-color: var(--color-success);
    }

/* Navbar Toggler */
.theme-green .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-green .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ------------------------
   SIDEBAR STYLES
------------------------ */
.theme-green .sidebar {
    background: var(--gradient-primary) !important;
    min-height: 100vh;
    width: 260px;
    transition: all 0.3s;
    position: relative;
    z-index: 100;
}

    .theme-green .sidebar.collapsed {
        width: 80px;
    }

        .theme-green .sidebar.collapsed .menu-title,
        .theme-green .sidebar.collapsed .nav-profile-text,
        .theme-green .sidebar.collapsed .bi-chevron-down {
            display: none !important;
        }

        .theme-green .sidebar.collapsed .nav-link {
            justify-content: center;
        }

            .theme-green .sidebar.collapsed .nav-link i {
                margin-right: 0 !important;
            }

/* Sidebar Content */
.sidebar-content {
    padding: 1rem 0;
}

/* Sidebar Profile */
.nav-profile {
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: var(--border-radius);
    margin: 1rem;
    padding: 1.5rem 1rem !important;
    text-align: center;
}

.nav-profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.login-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
}

    .login-status.online {
        background-color: var(--color-success);
    }

/* Sidebar Navigation */
.theme-green .sidebar .nav {
    flex-direction: column;
    padding: 0;
}

.theme-green .sidebar .nav-item {
    margin: 0.125rem 0.5rem;
}

.theme-green .sidebar .nav-link {
    color: var(--color-text-inverse) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .theme-green .sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.15) !important;
        text-decoration: none;
    }

    .theme-green .sidebar .nav-link.active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        font-weight: 600;
    }

    .theme-green .sidebar .nav-link[aria-expanded="true"] {
        background-color: rgba(255, 255, 255, 0.1);
    }

/* Sub-menu */
.theme-green .sub-menu {
    padding-left: 1rem;
}

    .theme-green .sub-menu .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        border-radius: var(--border-radius-sm);
    }

/* Collapse arrows */
.bi-chevron-down {
    transition: var(--transition);
    margin-left: auto;
}

.theme-green .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* ------------------------
   CARDS
------------------------ */
.theme-green .card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

    .theme-green .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.theme-green .card-header {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.theme-green .card-body {
    padding: 1.5rem;
}

.theme-green .card-footer {
    background-color: var(--color-bg-dark);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.theme-green .card-title {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.theme-green .card-text {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* ------------------------
   BUTTONS
------------------------ */
.theme-green .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.theme-green .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-text-inverse);
}

    .theme-green .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.theme-green .btn-outline-primary {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

    .theme-green .btn-outline-primary:hover {
        background: var(--color-secondary);
        color: var(--color-text-inverse);
        transform: translateY(-1px);
    }

/* ------------------------
   TABLES
------------------------ */
.theme-green .table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--color-text);
    border-collapse: collapse;
}

    .theme-green .table th,
    .theme-green .table td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid var(--color-border);
    }

    .theme-green .table thead th {
        vertical-align: bottom;
        border-bottom: 2px solid var(--color-border);
        background-color: var(--color-bg-dark);
        color: var(--color-primary);
        font-weight: 600;
    }

.theme-green .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.theme-green .table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* ------------------------
   BADGES
------------------------ */
.theme-green .badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--border-radius-sm);
}

.theme-green .badge-primary {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
}

.theme-green .badge-success {
    background-color: var(--color-success);
    color: var(--color-text-inverse);
}

/* ------------------------
   UTILITIES
------------------------ */
.theme-green .bg-gradient-primary {
    background: var(--gradient-primary) !important;
    color: var(--color-text-inverse);
}

.theme-green .text-white {
    color: var(--color-text-inverse) !important;
}

.theme-green .border-end {
    border-right: 1px solid var(--color-border) !important;
}

/* Purchase Popup */
.purchase-popup {
    background: var(--gradient-primary);
    color: var(--color-text-inverse);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

    .purchase-popup a {
        color: var(--color-accent);
        font-weight: 600;
    }

        .purchase-popup a:hover {
            color: var(--color-white);
            text-decoration: underline;
        }

/* ------------------------
   FOOTER
------------------------ */
.theme-green footer {
    background: var(--gradient-primary) !important;
    color: var(--color-text-inverse) !important;
    padding: 1rem 0;
    margin-top: auto;
}

/* ------------------------
   RESPONSIVE DESIGN
------------------------ */
@media (max-width: 768px) {
    .theme-green .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1000;
        width: 260px;
    }

        .theme-green .sidebar.show {
            left: 0;
        }

    .theme-green .main-panel {
        width: 100%;
    }

    .navbar-brand-wrapper {
        min-width: auto !important;
    }
}

@media (max-width: 576px) {
    .theme-green .container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .theme-green .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Ensure visibility */
.sidebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any Bootstrap defaults that might conflict */
body.theme-green .navbar-dark.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

body.theme-green .bg-dark {
    background: transparent !important;
}
