/* Add more custom styles here */
:root {
    --primary-color: #1976d2; /* Lighter blue that complements the logo */
    --secondary-color: #0d47a1; /* Darker blue for contrast */
    --accent-color: #4895ef;
    --success-color: #4cc9f0;
    --warning-color: #f72585;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.btn {
    border-radius: 5px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.table thead th {
    background-color: rgba(67, 97, 238, 0.1);
    border-bottom: none;
    font-weight: 600;
}

footer {
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    margin-top: auto;
}

.form-control, .form-select {
    border-radius: 5px;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.alert {
    border-radius: 8px;
    border: none;
}

.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
}

.dropdown-item:hover {
    background-color: rgba(67, 97, 238, 0.05);
}

/* Add these new styles for navbar improvements */
.nav-link, .navbar-brand, .dropdown-toggle {
    cursor: pointer;
}

.nav-item {
    display: flex;
    align-items: center;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.user-controls {
    display: flex;
    align-items: center;
}

.navbar-text {
    padding: 0.5rem 0;
    margin-right: 0.5rem !important;
}

.logout-btn {
    white-space: nowrap;
}

/* Modern login button styling */
.login-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 50px;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color) !important;
}

.login-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.login-button i {
    font-size: 1rem;
    margin-right: 6px;
    color: var(--primary-color);
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* High-contrast login button styling */
.login-button {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    margin-left: 10px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    z-index: 0;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 2px white, 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.login-button:active {
    transform: translateY(1px);
}

.login-button i {
    font-size: 1rem;
    margin-right: 8px;
    position: relative;
    z-index: 1;
    color: white; /* Ensure icon is white for visibility */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3); /* Add subtle shadow for better contrast */
}

.login-button span {
    position: relative;
    z-index: 1;
}


.btn-icon-mini {
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.btn-icon-mini:hover {
    background-color: #e9ecef;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-icon-mini i {
    font-size: 0.75rem;
}


/* Fix Bootstrap-Select hover and active item styling */
.bootstrap-select .dropdown-menu li a {
  color: #212529; /* normal text color */
  background-color: #fff; /* background */ 
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: 'Poppins', sans-serif; /* consistent font */
  font-weight: 500;
  font-size: medium;
  border-bottom: #dee2e6 solid 1px; /* subtle border for separation */
}

.bootstrap-select .dropdown-menu li a:hover,
.bootstrap-select .dropdown-menu li.active > a,
.bootstrap-select .dropdown-menu li.selected > a {
  background-color: #1976d2 !important; /* your primary blue */
  color: #fff !important;
}

/* Allow full width and text wrapping in dropdown options */
.bootstrap-select .dropdown-menu {
    white-space: normal !important;
    width: 100% !important;
    max-width: none !important;
}

.bootstrap-select .dropdown-menu li a {
    white-space: normal !important;
    padding: 0.5rem 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

.bootstrap-select .dropdown-menu li a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}