/* public/style.css */
:root {
    --sidebar-bg: #1e1e2d;
    --sidebar-hover: #2c2c3d;
    --sidebar-text: rgba(255, 255, 255, 0.7);
    --sidebar-active: #fff;
    --primary-color: #007bff;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background-color: #f4f7f6;
}

body:not(.login-page) {
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar Styling */
#sidebar-wrapper {
    min-width: 250px;
    max-width: 250px;
    background-color: var(--sidebar-bg);
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.5rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar-wrapper .sidebar-logo {
    max-width: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

#sidebar-wrapper .sidebar-logo:hover {
    transform: scale(1.05);
}

#sidebar-wrapper .list-group-item {
    background-color: transparent;
    color: var(--sidebar-text);
    border: none;
    padding: 12px 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

#sidebar-wrapper .list-group-item i {
    width: 20px;
    margin-right: 12px;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: var(--sidebar-hover);
    color: var(--sidebar-active);
}

#sidebar-wrapper .list-group-item.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Page Content Styling */
#page-content-wrapper {
    flex: 1;
    min-width: 0;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

#navbar-top {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.page-title-navbar {
    font-size: 1.25rem;
    font-weight: 600;
    margin-left: 1rem;
    color: #333;
    display: flex;
    align-items: center;
}

/* Main Content Area */
.main-content {
    padding: 1.5rem;
    flex: 1;
}

/* Custom Table Adjustments */
.table {
    margin-bottom: 0;
}

.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #6c757d;
    background-color: #fbfbfb;
}

.table td {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f8f9fa;
    padding: 0.75rem 1.25rem;
}

/* Toggle Sidebar Behavior */
#wrapper.toggled #sidebar-wrapper {
    margin-left: -250px;
}

/* Search Section */
.search-card {
    margin-bottom: 1rem;
}

.search-toggle-btn {
    cursor: pointer;
    transition: transform 0.3s;
}

.search-toggle-btn.collapsed {
    transform: rotate(-90deg);
}

/* Buttons and Tooltips (CSS part) */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 8px;
}

.btn-icon.btn-lg-icon {
    width: 38px;
    height: 38px;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -250px;
        position: fixed;
        height: 100vh;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}
/* --- LOGIN PAGE STYLES --- */
.login-container {
    height: 100vh;
    width: 100vw;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #1e1e2d 0%, #4e54c8 100%) !important;
    margin: 0;
    padding: 20px;
    z-index: 9999;
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    text-align: center;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
}

.login-card .logo {
    margin: 0 auto 2rem auto;
    max-width: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}

.login-card h2 {
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.login-card .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.login-card .btn-primary {
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1rem;
}


.navbar-logo-small {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.page-title-navbar {
    margin-left: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #444;
}

