/* Shared Admin Styles */

/* Ensure all text uses Oswald font */
* {
    font-family: 'Oswald', Arial, sans-serif;
}

/* Override main site background for admin pages */
body.attendance-logs-page .site-bg-video-overlay {
    background: linear-gradient(135deg, rgba(230, 240, 250, 0.75) 0%, rgba(230, 240, 250, 0.65) 100%);
}

/* Input icon styling for login form */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Forms CSS import handling */
@import url('forms.css');

/* Ensure proper contrast and readability */
input::placeholder {
    opacity: 0.7;
}

/* Button shared styles across admin */
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Ensure header is properly styled */
.site-header {
    background: rgba(254, 251, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4px;
}

/* Header left section */
.header-left-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Button styles for header */
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon {
    background-color: #3498db;
    color: white;
    padding: 10px 14px;
}

.btn-icon:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-icon:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #3498db;
    color: white;
    padding: 10px 14px;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-danger {
    background-color: #c53030;
    color: white;
    padding: 10px 14px;
}

.btn-danger:hover {
    background-color: #a01e1e;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(197, 48, 48, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.header-logo a {
    font-size: 18px;
    font-weight: 700;
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-logo a:hover {
    color: #2980b9;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Active navigation link styling */
.nav-link.active {
    color: #3498db;
    font-weight: 700;
    border-bottom: 2px solid #3498db;
}

/* Timezone Selector Styling */
.timezone-selector-wrapper {
    position: relative;
    display: inline-block;
}

.timezone-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    color: #555;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 32px 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Oswald', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23555%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3e%3cpolyline points=%226 9 12 15 18 9%22%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 32px;
}

.timezone-selector:hover {
    border-color: #3498db;
    color: #3498db;
}

.timezone-selector:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-color: #3498db;
}

.timezone-selector option {
    background-color: #ffffff;
    color: #555;
    font-weight: 600;
    padding: 8px;
}

.timezone-selector option:hover {
    background-color: #e8f4f8;
    color: #3498db;
}

.timezone-selector option:checked {
    background: linear-gradient(#e8f4f8, #e8f4f8);
    background-color: #e8f4f8 !important;
    color: #3498db;
}
