/* Custom CSS for RenewIQ */

:root {
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --secondary-color: #858796;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* Override Bootstrap row gutter */
.row {
    --bs-gutter-x: 0;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
}
.nav{
    flex-wrap: unset;
}
/* Sidebar Styles */
.sidebar {
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin: 0.25rem 0.5rem;
}

.sidebar .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
}

.sidebar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.1);
}

.sidebar-brand a {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
}

.sidebar .nav-link i {
    width: 22px;
}

/* Floating Menu Button for Mobile */
.floating-menu-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-menu-btn:active {
    transform: scale(0.95);
}

.floating-menu-btn i {
    margin: 0;
}

/* Mobile Offcanvas Sidebar */
.sidebar-mobile.offcanvas {
    --bs-offcanvas-width: 280px;
    z-index: 1055;
}

.sidebar-mobile .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.sidebar-mobile .sidebar-brand {
    flex-shrink: 0;
}

.sidebar-mobile .nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}

.sidebar-mobile .nav-link {
    min-height: 48px;
    padding: 0.75rem 1rem;
}

/* Desktop Static Sidebar */
.sidebar-desktop {
    background-color: #f8f9fc;
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-desktop .sidebar-brand {
    flex-shrink: 0;
}

.sidebar-desktop nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 1rem;
    max-height: 740px;
}

.sidebar-desktop .nav-link {
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.sidebar-desktop .nav-link:hover {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
}

.sidebar-desktop .nav-link.active {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
}

/* Hide backdrop on desktop */
@media (min-width: 768px) {
    .offcanvas-backdrop {
        display: none !important;
    }
}

/* Card Styles */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Border Left Colors */
.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color) !important;
}

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

/* Status Badges */
.badge-status-active {
    background-color: var(--success-color);
    color: white;
}

.badge-status-inactive {
    background-color: var(--secondary-color);
    color: white;
}

.badge-status-dispute {
    background-color: var(--danger-color);
    color: white;
}

.badge-status-free {
    background-color: var(--info-color);
    color: white;
}

.badge-status-shifted {
    background-color: var(--warning-color);
    color: white;
}

/* Table Styles */
.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
    background-color: #f8f9fc;
}

.table td {
    vertical-align: middle;
}

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

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2e59d9;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Notification Styles */
.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e3e6f0;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(78, 115, 223, 0.05);
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
    }
    
    .sidebar-sticky {
        height: calc(100vh - 5rem);
    }
    .table td{
        white-space: nowrap;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Utilities */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.nav-section-label {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 1px;
    pointer-events: none;
}

.sidebar-section-label {
    padding: 0.35rem 1rem;
    pointer-events: none;
}

