:root {
    /* Car service themed color palette */
    --primary: 210 100% 50%; /* #007bff - Professional blue */
    --primary-dark: 210 100% 40%; /* #0056b3 */
    --secondary: 200 18% 46%; /* #6c757d - Neutral gray */
    --success: 142 71% 45%; /* #28a745 - Service complete green */
    --warning: 45 100% 51%; /* #ffc107 - Due soon yellow */
    --danger: 354 70% 54%; /* #dc3545 - Overdue red */
    --info: 188 78% 41%; /* #17a2b8 - Information blue */
    --light: 210 17% 98%; /* #f8f9fa */
    --dark: 210 9% 31%; /* #495057 */
    --background: 210 11% 98%; /* #f5f7fa */
    --surface: 0 0% 100%; /* #ffffff */
    --border: 210 14% 89%; /* #dee2e6 */
    --text: 210 9% 31%; /* #495057 */
    --text-muted: 210 7% 56%; /* #6c757d */
}

/* Global styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text));
    background-color: hsl(var(--background));
    margin: 0;
    padding: 0;
}

/* Navigation */
.navbar {
    /* background-color: hsl(var(--primary)) !important; */
    background: linear-gradient(135deg, #007bff, #00bfff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    margin-top: -5px;
    font-weight: 600;
    font-size: 2.5rem;
}

#userDropdown {
    color: rgb(0, 0, 0);
    background: white;
}

#userDropdown:hover {
    border-bottom: 2px solid #000000;
    border-radius: 0.5rem;

}

#userDropdown:focus {
    color: black;
    border-radius: 0.35rem;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.navbar-brand svg {
    width: 36px;
    height: 36px;
    vertical-align: middle;
    margin-top: -10px; 
}

#navbarNav .nav-link svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-top: -2px; 
}

/* .navbar-nav .nav-link:hover {
    border-bottom: 2px solid #000000;
} */

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgb(255, 255, 255);
    transition: color 0.2s ease;
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #00bfff, #007bff);
    color: black;
    /* border: 10px solid linear-gradient(135deg, #007bff, #00bfff); */
    border-radius: 0.5rem;
    /* box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5); */
    font-weight: 600;
}

.navbar-nav .nav-link:hover {
    color: black !important;
}


.navbar-nav .nav-link:hover {
    color: black !important;
}

#userDropdown {
    color: rgb(0, 0, 0);
    background: white;
}

#userDropdown:hover {
    border-bottom: 2px solid #000000;
    border-radius: 0.5rem;

}

#userDropdown:focus {
    color: black;
    border-radius: 0.35rem;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

@media (max-width: 992px) {
  .navbar-brand {
    font-size: 2rem;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    text-align: right;
  }

  .navbar-nav .dropdown-menu {
    min-width: 100%;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }

    .navbar-brand {
        font-size: 1.75rem;
    }

    .navbar-brand svg {
        width: 28px;
        height: 28px;
        margin-top: -6px;
    }
  
    #navbarNav .nav-link svg {
        width: 14px;
        height: 14px;
    }
    
    .navbar-nav .nav-link.active {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-brand svg {
      width: 28px;
      height: 28px;
      margin-top: -6px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link svg {
        width: 14px;
        height: 14px;
    }
}

/* Navbar Toggler */
.navbar-toggler {
  background-color: rgba(255, 255, 255, 0.2); /* light semi-transparent bg */
  border: none;
  padding: 0.3rem;
  border-radius: 0.rem;
  transition: background-color 0.3s ease;
  margin-left: auto; /* aligns to right in navbar */
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1em;
  height: 1em;
  background-size: contain;
}


/* FOOTER */

footer {
    position:relative;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 950;
    background: linear-gradient(135deg, #007bff, #00bfff);;
    color:rgb(0, 0, 0);
}

/* Main content */
.main-content {
    min-height: auto;
    margin-bottom: 45px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Cards */
.card {
    border-left: 4px solid hsl(var(--primary));
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.3s ease;
    background-color: hsl(var(--surface));
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.card-header {
    background-color: hsl(var(--light));
    border-bottom: 1px solid hsl(var(--border));
    font-weight: 600;
}

/* Buttons */
.btn-login {
    background-color: white;
}

.btn-login:hover {
    color :#000000;
    transform: translateY(-3px);
    background-color: #00bfff;
}

.btn {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    border-color: hsl(var(--primary-dark));
}

.btn-success {
    background-color: hsl(var(--success));
    border-color: hsl(var(--success));
}

.btn-warning {
    background-color: hsl(var(--warning));
    border-color: hsl(var(--warning));
    color: hsl(var(--dark));
}

.btn-danger {
    background-color: hsl(var(--danger));
    border-color: hsl(var(--danger));
}

@media (max-width: 576px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.875rem;
    }
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: hsl(var(--text));
}

.table th, .table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid hsl(var(--border));
}

/* Service status badges */
.service-status {
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.service-status.overdue {
    background-color: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
    border: 1px solid hsl(var(--danger) / 0.3);
}

.service-status.due-soon,
.service-status.due_soon {
    background-color: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
    border: 1px solid hsl(var(--warning) / 0.3);
}

.service-status.upcoming {
    background-color: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    border: 1px solid hsl(var(--success) / 0.3);
}

/* Modal */
.modal-content {
    border-radius: 0.5rem;
    padding: 1rem;
}

@media (max-width: 576px) {
    .modal-content {
        padding: 0.5rem;
    }
}

/* Dashboard widgets */
.dashboard-widget {
    padding: 1.5rem;
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
    transition: transform 0.2s ease;
    position: relative;
    border-radius: 0.35rem;
    overflow: hidden;
}

.icon-dashboard-widget {
    position: absolute;
    top: 0.7rem; 
    right: 1rem; 
    opacity: 0.7;
}

.dashboard-widget:hover {
    color: white;
    box-shadow: 0 2px 6px rgb(0, 0, 0);
    text-decoration: none;
    transform: translateY(-2px);
}

.dashboard-widget h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-widget p {
    margin-bottom: 0;
    opacity: 0.9;
}

.widget-overdue {
    background: linear-gradient(135deg, hsl(354 70% 45%), hsl(var(--danger)));
}

.widget-due-soon {
    background: linear-gradient(135deg, hsl(45 100% 45%), hsl(var(--warning)));
}

.widget-upcoming {
    background: linear-gradient(135deg, hsl(142 71% 38%), hsl(var(--success)));
}

.widget-cars {
    background: linear-gradient(135deg, hsl(188 78% 35%), hsl(var(--info)));
}

/* Car cards */
.car-card {
    border-left: 4px solid hsl(var(--primary));
}

.car-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.car-detail-item {
    display: flex;
    flex-direction: column;
}

.car-detail-label {
    font-size: 0.875rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.25rem;
}

.car-detail-value {
    font-weight: 500;
    color: hsl(var(--text));
}

/* Service lists */
.service-list-item {
    padding: 1rem;
    border-left: 4px solid transparent;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background-color: hsl(var(--surface));
    border: 1px solid hsl(var(--border));
}

.service-list-item.overdue {
    border-left-color: hsl(var(--danger));
    background-color: hsl(var(--danger) / 0.05);
}

.service-list-item.due-soon,
.service-list-item.due_soon {
    border-left-color: hsl(var(--warning));
    background-color: hsl(var(--warning) / 0.05);
}

.service-list-item.upcoming {
    border-left-color: hsl(var(--success));
    background-color: hsl(var(--success) / 0.05);
}

/* Forms */
.form-control {
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 0.2rem hsl(var(--primary) / 0.25);
}

.form-label {
    font-weight: 500;
    color: hsl(var(--text));
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

/* Alerts */
.alert {
    border-radius: 0.375rem;
    border: none;
    padding: 1rem;
    /* font-size: 0.95rem; */
}

 .alert-success {
    background-color: hsl(var(--success) / 0.1);
    color: hsl(var(--success));
    border-left: 4px solid hsl(var(--success));
}

.alert-warning {
    background-color: hsl(var(--warning) / 0.1);
    color: hsl(var(--warning));
    border-left: 4px solid hsl(var(--warning));
}

.alert-danger {
    background-color: hsl(var(--danger) / 0.1);
    color: hsl(var(--danger));
    border-left: 4px solid hsl(var(--danger));
}

.alert-info {
    background-color: hsl(var(--info) / 0.1);
    color: hsl(var(--info));
    border-left: 4px solid hsl(var(--info));
} 

/* Landing page */
.hero-section {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: hsl(var(--primary));
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .dashboard-widget h3 {
        font-size: 1.5rem;
    }
    
    .car-details {
        grid-template-columns: 1fr;
    }
}

/* PWA specific styles */
.install-prompt {
    position: fixed;
    bottom: 72px;
    right: 20px;
    max-width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 8px;
    z-index: 1000;
    opacity: 1;
    /*display: none;*/
    transition: opacity 0.3s ease, transform 0.3s ease;
    display:flex;
}

.install-prompt.show {
    display: block;
    opacity: 1;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-prompt-container {
    position: relative;
}

.install-prompt-actions {
    display: flex;
    /*flex-direction: column;*/
    justify-content: center;
    /*align-items: center;*/
    /*padding-top: 2px;*/
}

.install-prompt-actions .btn {
    min-width: 80px;
}

.install-close-btn {
    width: 94px;
    height: 40px;
    border-radius: 0.35rem;
    background: #ffffff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1;
   
}

.install-close-btn:hover {
    background-color: rgb(239, 239, 239);

}
.install-prompt-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.install-prompt-icon img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.install-prompt-text {
    flex: 1;
}

.install-prompt-text strong {
    display: block;
    margin-bottom: 2px;
}

.install-prompt-text .small {
    font-size: 0.77rem;
    color: #6c757d;
}

.btn-install {
    bottom: 10px;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    margin-right: 50px;
    margin-left: 25px;
}

.btn-install:hover {
    background: #0069d9;
    color: white;
}

/* Responsive Breakpoints */
/*@media (width: 768px) {*/
/*    .install-prompt {*/
/*    position: fixed;*/
/*    bottom: 10%;*/
/*    right: 20px;*/
/*    left: 25px;*/
/*    max-width: 80%;*/
/*    }*/
    
/*    .install-prompt-actions {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    }*/
    
/*    .install-prompt {*/
/*        right: 30px;*/
/*        left: auto;*/
/*        max-width: calc(100% - 0px);*/
/*    }*/

/*    .install-close-btn {*/
/*        width: 93px;*/
/*        font-size: 14px;*/
/*    }*/

/*    .btn-install {*/
/*        bottom: 10px;*/
/*        background: #007bff;*/
/*        color: white;*/
/*        display: flex;*/
/*        align-items: center;*/
/*        justify-content: center;*/
/*        white-space: nowrap;*/
/*        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);*/
/*        margin: 10%;*/
/*    }*/
/*}*/

/*@media (width: 480px) {*/
/*    .install-prompt {*/
/*        padding: 12px;*/
/*        right: 25px;*/
/*        left: 25px;*/
/*        max-width: unset;*/
/*    }*/

/*    .install-close-btn {*/
/*        width: 80px;*/
/*        height: 30px;*/
/*        top: 12px;*/
/*        font-size: 16px;*/
/*        font-weight: 600;*/
/*    }*/

/*    .install-prompt-icon img {*/
/*        width: 40px;*/
/*        height: 40px;*/
/*    }*/

/*    .btn-install {*/
/*        margin: 10%;*/
/*    }*/

/*    .install-prompt {*/
/*    position: fixed;*/
/*    bottom: 10%;*/
/*    left: 25px;*/
/*    }*/
    
/*    .install-prompt-actions {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    }*/
    
/*    .install-prompt {*/
/*        right: 30px;*/
/*        max-width: calc(100% - 0px);*/
/*    }*/

/*    .install-close-btn {*/
/*        width: 93px;*/
/*        font-size: 14px;*/
/*    }*/

/*    .btn-install {*/
/*        bottom: 10px;*/
/*        background: #007bff;*/
/*        color: white;*/
/*        display: flex;*/
/*        align-items: center;*/
/*        justify-content: center;*/
/*        white-space: nowrap;*/
/*        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);*/
/*        margin: 10%;*/
/*    }*/
/*}*/

/*@media (width: 345px) {*/
/*    .install-prompt {*/
/*        padding: 12px;*/
/*        margin: 0 15px;*/
/*        max-width: 100%;*/
/*        box-sizing: border-box;*/
/*    }*/

/*    .install-close-btn {*/
/*        position: absolute;*/
/*        top: 97px;*/
/*        right: 0px;*/
/*        width: 80px;*/
/*        height: 33px;*/
/*        font-size: 20px;*/
/*        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);*/
/*        z-index: 10;*/
/*        font-weight: 500;*/
/*    }*/
    
/*    .install-prompt-icon img {*/
/*        width: 40px;*/
/*        top: 20px;*/
/*    }*/
    
/*    .btn-install {*/
/*        font-weight: 600;*/
/*        background-color: #007bff;*/
/*        color: white;*/
/*        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);*/
/*        transition: all 0.3s ease;*/
/*        cursor: pointer;*/
/*    }*/
/*    .install-prompt-actions {*/
/*        padding-top: 0;*/
/*    }*/
/*}*/

/*@media (width: 335px) {*/
/*    .install-prompt {*/
/*        padding: 12px;*/
/*        margin: 0 15px;*/
/*        max-width: 100%;*/
/*        box-sizing: border-box;*/
/*    }*/

/*    .install-close-btn {*/
/*        position: absolute;*/
/*        top: 77%;*/
/*        right: 0px;*/
/*        width: 80px;*/
/*        height: 33px;*/
/*        font-size: 20px;*/
/*        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);*/
/*        z-index: 10;*/
/*        font-weight: 500;*/
/*    }*/
    
/*    .install-prompt-icon img {*/
/*        width: 40px;*/
/*        top: 20px;*/
/*    }*/
    
/*    .btn-install {*/
/*        font-weight: 600;*/
/*        background-color: #007bff;*/
/*        color: white;*/
/*        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);*/
/*        transition: all 0.3s ease;*/
/*        cursor: pointer;*/
/*    }*/
/*    .install-prompt-actions {*/
/*        padding-top: 0;*/
/*    }*/
/*}*/


/* Utility classes */
.text-muted {
    color: hsl(var(--text-muted)) !important;
    font-size: 1rem;
}

.bg-light {
    background-color: hsl(var(--light)) !important;
}

.border-left-primary {
    border-left: 4px solid hsl(var(--primary)) !important;
}

.border-left-success {
    border-left: 4px solid hsl(var(--success)) !important;
}

.border-left-warning {
    border-left: 4px solid hsl(var(--warning)) !important;
}

.border-left-danger {
    border-left: 4px solid hsl(var(--danger)) !important;
}

.container {
    width: 95%;
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.chart-container {
    position: relative;
    min-height: 300px;
}

.widget-primary { background-color: #4e73df; }
.widget-success { background-color: #1cc88a; }
.widget-info { background-color: #36b9cc; }
.widget-warning { background-color: #f6c23e; }
.widget-danger { background-color: #e74a3b; }


@media (max-width:398px){
    #botton-add{
        margin-top: 5px;
    }
}

/* Server Status Alert Styles */
    
#server-status-alert {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    max-width: 350px;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#server-status-alert.show {
    opacity: 1;
}

/* Dropdown Menu Styles */

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.04);
}

.dropdown-menu .notifications-header {
    padding: 8px 16px;
    margin: -4px -4px 8px -4px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-menu .notification-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
    margin-left: auto;
}

.dropdown-menu .notification-status.enabled {
    background: #d4edda;
    color: #155724;
}

.dropdown-item {
    padding: 10px 16px;
    color: #495057;
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    transform: translateX(4px);
}

.dropdown-item:active {
    background-color: #e9ecef;
}

.dropdown-item i, 
.dropdown-item svg {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    stroke-width: 2.5px;
    flex-shrink: 0;
}

.dropdown-divider {
    margin: 8px 4px;
    border-color: #f0f0f0;
    opacity: 0.7;
}

.enable-notifications-btn {
    background: #007bff;
    color: white;
    border: none;
    width: calc(100% - 8px);
    margin: 4px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.enable-notifications-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.enable-notifications-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.enable-notifications-btn i,
.enable-notifications-btn svg {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    stroke-width: 2.5px;
}

.logout-item {
    color: #dc3545 !important;
    margin-bottom: 4px;
}

.logout-item:hover {
    background-color: #fff5f5 !important;
    color: #dc3545 !important;
}

.logout-item i, 
.logout-item svg {
    color: #dc3545;
    stroke: #dc3545;
}

/* User Profile Button in Navbar */
.nav-link.dropdown-toggle {
    /* display: flex; */
    align-items: center;
    padding: 6px 12px 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-link.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.dropdown-toggle img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin-right: 8px;
    object-fit: cover;
}

.nav-link.dropdown-toggle i,
.nav-link.dropdown-toggle svg {
    width: auto;
    height: 25px;
    margin-right: 8px;
    stroke-width: 2px;
}
/* Ensure dropdown is properly positioned */
.dropdown {
    position: relative;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}


/* Responsive utility helpers */
@media  (max-width:421px) {
.navbar-brand {
    margin-top: -5px;
    font-weight: 600;
    font-size: 1.5em;
}
}

.hidden-sm { display: none !important; }
@media (min-width: 576px) {
    .hidden-sm { display: initial !important; }
}

.hidden-md { display: none !important; }
@media (min-width: 768px) {
    .hidden-md { display: initial !important; }
}

.hidden-lg { display: none !important; }
@media (min-width: 992px) {
    .hidden-lg { display: initial !important; }
}


/* Summary Card Style */

.summary-card {
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    min-height: 100%;
}

.summary-card h6 {
    font-weight: 600;
    font-size: 1rem;
}

.summary-card hr {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .summary-card {
        padding: 1rem 1rem;
    }

    .summary-card h3 {
        font-size: 1.5rem;
    }

    .summary-card small {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .summary-card h6 {
        font-size: 0.95rem;
    }

    .summary-card h3 {
        font-size: 1.3rem;
    }

    .summary-card .col {
        margin-bottom: 0.75rem;
    }
}
