/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar - Mobile First Approach */
.sidebar {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    min-width: 260px;
    max-width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transform: translateX(-100%); /* Hide by default on mobile */
    transition: transform 0.3s ease;
    overflow-y: auto;
}

/* When sidebar is active (visible) */
.sidebar.active {
    transform: translateX(0);
    box-shadow: 3px 0 10px rgba(0,0,0,0.2);
}

/* Content Area */
.content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 0;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    top: 0;
    left: 0;
    transition: all 0.5s ease-in-out;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .sidebar {
        transform: translateX(0); /* Show by default on desktop */
    }
    
    .content {
        margin-left: 260px;
        width: calc(100% - 260px);
    }
    
    /* When toggled on desktop, hide sidebar */
    .wrapper.toggled .sidebar {
        transform: translateX(-100%);
    }
    
    .wrapper.toggled .content {
        margin-left: 0;
        width: 100%;
    }
    
    /* No overlay on desktop */
    .sidebar-overlay {
        display: none !important;
    }
}

/* Remove any inline styles from the sidebar.blade.php */
.sidebar-header {
    background: linear-gradient(135deg,rgb(14, 0, 94) 0%,rgb(3, 208, 223) 100%);
    border-bottom: 1px solid rgb(36, 124, 255);
    padding: 20px 15px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.sidebar-logo {
    max-width: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.nav-sidebar {
    padding-left: 0;
    margin-bottom: 80px; /* More space at bottom of sidebar for scrolling */
    padding-bottom: 20px;
}

.nav-sidebar .nav-item .nav-link {
    color: rgba(255,255,255,0.8);
    border-radius: 4px;
    margin: 2px 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
}

.nav-sidebar .nav-item .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.nav-sidebar .nav-item .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.2);
    border-left: 4px solid #fff;
}

.nav-sidebar .nav-item .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.nav-sidebar .nav-item .nav-link .menu-text {
    font-size: 14px;
    font-weight: 500;
}

.nav-header {
    font-size: 0.75rem;
    padding: 1rem 1.5rem 0.5rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

/* Navbar */
.navbar {
    padding: 15px 20px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Menu Toggle Button */
#menu-toggle {
    z-index: 1060;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: pointer;
}

#menu-toggle:hover {
    background-color: #e9ecef;
}

#menu-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Card Styles */
.card {
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    border: none;
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    padding: 1rem 1.25rem;
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

/* Table Styles */
.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-responsive {
    border-radius: 0.5rem;
}

/* Form Styles */
.form-control {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Button Styles */
.btn {
    font-weight: 500;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
}

/* Alert Styles */
.alert {
    margin-bottom: 1rem;
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
}

/* Container padding for better mobile experience */
.container-fluid {
    padding: 0 20px;
}

/* Dashboard cards */
.dashboard-card {
    height: 100%;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Fix for long content in tables */
.table td {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer styling */
footer {
    position: relative;
    margin-top: 20px;
    padding: 15px 0;
}

/* Utilities for spacing */
.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

/* Utilities */
.nav-icon {
    width: 1.5rem;
    text-align: center;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Pagination Styles */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
} 