body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible !important;
    position: relative !important;
}

.navbar .container {
    overflow: visible !important;
    position: relative !important;
}

.navbar-text {
    overflow: visible !important;
    position: relative !important;
}

.navbar-brand {
    color: white !important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.status-card {
    transition: transform 0.2s;
}

.status-card:hover {
    transform: translateY(-5px);
}

.status-success {
    border-left: 5px solid #28a745;
}

.status-error {
    border-left: 5px solid #dc3545;
}

.status-warning {
    border-left: 5px solid #ffc107;
}

.color-black {
    color: #000000 !important;
}

.log-container {
    background-color: #1e1e1e;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 15px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.log-line {
    margin-bottom: 5px;
    word-wrap: break-word;
}

.log-success {
    color: #28a745;
}

.log-error {
    color: #dc3545;
}

.log-info {
    color: #17a2b8;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

#autoRefreshStatus {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

#currentDateTime {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-top: 20vh;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.credentials-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 2rem;
}

.credentials-card .card-header {
    padding: 1.5rem;
}

.credentials-card .card-body {
    padding: 2rem;
}

.credentials-card .form-label {
    font-weight: 500;
    color: #495057;
}

.credentials-card .form-control {
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    transition: all 0.2s;
}

.credentials-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.credentials-card .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.credentials-card .btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
}

.credentials-card .btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.credentials-card .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.credentials-card .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* User dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 8px;
    color: white;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    min-width: 180px;
    z-index: 9999;
    display: none;
    margin-top: 8px;
}

.user-menu.show {
    display: block;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.user-item:hover {
    background: #f8f9fa;
    color: #667eea;
    text-decoration: none;
}

.user-item i {
    width: 14px;
    margin-right: 8px;
    color: #667eea;
    font-size: 12px;
}

.user-divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

/* Auto-refresh */
.d-flex.align-items-center.me-3 {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    gap: 0.5rem;
}

.d-flex.align-items-center.me-3 small {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

#autoRefreshStatus {
    cursor: pointer;
    transition: all 0.2s;
}

#autoRefreshStatus:hover {
    transform: scale(1.05);
}

/* Log header layout */
.card-header.d-flex.justify-content-between.align-items-center {
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.card-header.d-flex.justify-content-between.align-items-center .d-flex.align-items-center {
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header.d-flex.justify-content-between.align-items-center select {
    flex-shrink: 0;
    min-width: 160px;
    width: 160px;
}