html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Horizontal Layout Styles */
.page-horizontal {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Dark theme support */
[data-bs-theme="dark"] .page-horizontal {
    background-color: #212529;
}

[data-bs-theme="dark"] .main-content {
    background-color: #212529;
    color: #e9ecef;
}

[data-bs-theme="dark"] .content {
    background-color: transparent;
    color: #e9ecef;
}

[data-bs-theme="dark"] .container,
[data-bs-theme="dark"] .container-fluid {
    background-color: transparent;
}

.page-horizontal header {
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    overflow-y: auto;
}

.content {
    max-width: 100%;
}

/* Custom navbar - complete override of Bootstrap */
.navbar {
    background: linear-gradient(135deg, #43e26b 0%, #055218 100%) !important;
    padding: 0 !important;
    min-height: 56px !important;
    position: relative;
}

.navbar .container-fluid {
    display: flex !important;
    align-items: stretch !important;
    min-height: 56px !important;
    padding: 0 1rem !important;
}

.navbar-brand {
    font-weight: 600;
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem 0 0 !important;
    margin: 0 !important;
    height: 56px !important;
    line-height: 56px !important;
    color: white !important;
    text-decoration: none !important;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-collapse {
    display: flex !important;
    align-items: stretch !important;
    flex: 1 !important;
    height: 56px !important;
}

.navbar-nav {
    display: flex !important;
    align-items: stretch !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    height: 56px !important;
}

.navbar-nav.me-auto {
    margin-right: auto !important;
}

.navbar-nav .nav-item {
    display: flex !important;
    align-items: stretch !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-nav .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem !important;
    height: 56px !important;
    line-height: 56px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: background-color 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navigation link states */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

/* Dropdown styling */
.navbar-nav .dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem !important;
    height: 56px !important;
    line-height: 56px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* User info section - right aligned */
.navbar .d-flex {
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    gap: 1rem !important;
    margin-left: auto !important;
}

.navbar-text {
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    line-height: 56px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Button styling */
.navbar .btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0.375rem 0.75rem !important;
    margin: 8px 0 !important;
    line-height: 1.5 !important;
    border-radius: 0.25rem !important;
}

/* Mobile toggle button */
.navbar-toggler {
    display: flex !important;
    align-items: center !important;
    height: 56px !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* Override Bootstrap collapse behavior */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex: 1 !important;
        align-items: stretch !important;
        height: 56px !important;
    }
    
    .navbar-expand-lg .navbar-nav {
        flex-direction: row !important;
        align-items: stretch !important;
    }
    
    .navbar-expand-lg .navbar-toggler {
        display: none !important;
    }
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--bs-primary);
}

/* Mobile responsiveness */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* Employee Welcome Page Styles */
.employee-welcome-container {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #43e26b 0%, #055218 100%);
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.employee-welcome-container .welcome-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    overflow: hidden;
    animation: slideInEmployee 0.6s ease-out;
}

.employee-welcome-container .welcome-header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.employee-welcome-container .welcome-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.employee-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.employee-welcome-container .welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.employee-welcome-container .welcome-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    color: #60d9fa;
    position: relative;
    z-index: 1;
}

.employee-welcome-container .welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 0;
    position: relative;
    z-index: 1;
}

.employee-welcome-container .welcome-content {
    padding: 2.5rem 2rem;
}

.employee-welcome-container .login-section {
    text-align: center;
}

.employee-welcome-container .login-text {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.employee-welcome-container .login-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.employee-welcome-container .login-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5568d3 0%, #6a3b92 100%);
}

.employee-welcome-container .login-button:active:not(:disabled) {
    transform: translateY(-1px);
}

.features-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    text-align: center;
}

.employee-welcome-container .security-notice {
    color: #6c757d;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

.employee-welcome-container .security-notice i {
    color: #667eea;
}

@keyframes slideInEmployee {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.15;
    }
}

/* Responsive Design for Employee Welcome */
@media (max-width: 768px) {
    .employee-welcome-container .welcome-header {
        padding: 2rem 1.5rem;
    }
    
    .employee-logo {
        font-size: 3rem;
    }
    
    .employee-welcome-container .welcome-header h1 {
        font-size: 2rem;
    }
    
    .employee-welcome-container .welcome-header h2 {
        font-size: 1.2rem;
    }
    
    .employee-welcome-container .welcome-content {
        padding: 2rem 1.5rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .employee-welcome-container {
        padding: 0.5rem;
    }
    
    .employee-welcome-container .welcome-card {
        border-radius: 16px;
    }
    
    .employee-welcome-container .welcome-header {
        padding: 1.5rem 1rem;
    }
    
    .employee-logo {
        font-size: 2.5rem;
    }
    
    .employee-welcome-container .welcome-header h1 {
        font-size: 1.75rem;
    }
    
    .employee-welcome-container .welcome-header h2 {
        font-size: 1.1rem;
    }
    
    .employee-welcome-container .welcome-subtitle {
        font-size: 0.95rem;
    }
    
    .employee-welcome-container .welcome-content {
        padding: 1.5rem 1rem;
    }
    
    .feature-item {
        padding: 0.75rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .feature-item span {
        font-size: 0.85rem;
    }
}

/* Rental Calendar Styles */
.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.calendar-container {
    background-color: white;
    border-radius: 0.5rem;
    overflow: auto;
    font-size: 0.75rem;
    max-height: calc(100vh - 250px);
    position: relative;
}

.calendar-week-header {
    display: grid;
    grid-template-columns: 80px 60px repeat(7, 1fr);
    background-color: #495057;
    color: white;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.time-header, .day-header {
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.7rem;
}

.calendar-week {
    display: grid;
    grid-template-columns: 80px 60px repeat(7, 1fr);
    border-bottom: 1px solid #dee2e6;
}

.calendar-week:last-child {
    border-bottom: none;
}

.time-slots-column {
    background-color: #f8f9fa;
    border-right: 2px solid #dee2e6;
}

.week-dates-column {
    background-color: #e9ecef;
    border-right: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 0.7rem;
    color: #495057;
    padding: 0.5rem;
}

.time-slot {
    padding: 0.3rem 0.2rem;
    text-align: center;
    font-weight: 500;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.65rem;
    height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-period {
    font-size: 0.55rem;
    color: #6c757d;
}

.day-column {
    border-right: 1px solid #dee2e6;
}

.day-column:last-child {
    border-right: none;
}

.day-column.other-month {
    background-color: #f8f9fa;
    opacity: 0.6;
}

.day-column.today {
    background-color: #fff3cd;
}

.day-header-cell {
    padding: 0.1rem 0.3rem;
    text-align: center;
    font-weight: bold;
    border-bottom: 2px solid #495057;
    background-color: #f8f9fa;
    height: 0;
    min-height: 0;
    line-height: 1;
    font-size: 0.7rem;
}

.time-cell {
    min-height: 35px;
    padding: 0.15rem;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.time-cell:last-child {
    border-bottom: none;
}

.time-cell:hover {
    background-color: #f8f9fa;
}

.rental-blocks-container {
    display: flex;
    gap: 0.2rem;
    align-items: flex-start;
}

.rental-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.15rem 0.3rem;
    border-radius: 0.2rem;
    font-size: 0.65rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.rental-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.rental-block.past {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    opacity: 0.6;
}

.rental-block.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}

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

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

.day-number {
    position: absolute;
    top: 0.1rem;
    right: 0.3rem;
    font-weight: bold;
    color: #6c757d;
    font-size: 0.7rem;
}

.rental-list {
    margin-top: 2rem;
    padding-top: 0.5rem;
}