/**
 * myBerkeley Lite - Standalone Styles
 * 
 * Clean, modern, mobile-first design
 * No Bootstrap - Pure modern CSS
 */

:root {
    /* Brand Colors */
    --lite-primary: #2563eb;
    --lite-primary-dark: #1e40af;
    --lite-accent: #10b981;
    --lite-danger: #ef4444;

    /* Neutrals */
    --lite-bg: #f8fafc;
    --lite-card-bg: #ffffff;
    --lite-text: #1e293b;
    --lite-text-light: #64748b;
    --lite-border: #e2e8f0;

    /* Spacing */
    --lite-radius: 12px;
    --lite-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --lite-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.lite-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--lite-bg);
    color: var(--lite-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Login Page Styles */
.lite-login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    gap: 2rem;
}

.lite-login-card {
    background: var(--lite-card-bg);
    border-radius: var(--lite-radius);
    box-shadow: var(--lite-shadow-lg);
    padding: 3rem 2rem;
    width: 100%;
    max-width: 420px;
}

.lite-logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.lite-logo-img {
    width: 260px;
    height: auto;
    margin: 0 auto 1rem auto;
    display: block;
}

.lite-brand {
    font-size: 2rem;
    font-weight: 700;
    color: var(--lite-text);
    margin-bottom: 0.5rem;
}

.lite-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--lite-primary), var(--lite-accent));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.lite-tagline {
    color: var(--lite-text-light);
    font-size: 0.95rem;
}

.lite-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lite-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lite-label {
    font-weight: 600;
    color: var(--lite-text);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lite-label i {
    font-size: 1.2rem;
    color: var(--lite-primary);
}

.lite-input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--lite-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--lite-card-bg);
}

.lite-input:focus {
    outline: none;
    border-color: var(--lite-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lite-input:disabled {
    background: var(--lite-bg);
    cursor: not-allowed;
    opacity: 0.6;
}

.lite-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--lite-danger);
    color: var(--lite-danger);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lite-btn-primary {
    background: linear-gradient(135deg, var(--lite-primary), var(--lite-primary-dark));
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lite-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--lite-shadow-lg);
}

.lite-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.lite-footer-links {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--lite-border);
    text-align: center;
}

.lite-link {
    color: var(--lite-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.lite-link:hover {
    color: var(--lite-primary-dark);
}

/* Info Card */
.lite-info-card {
    background: var(--lite-card-bg);
    border-radius: var(--lite-radius);
    box-shadow: var(--lite-shadow);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.lite-info-card h3 {
    color: var(--lite-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lite-info-card h3 i {
    color: var(--lite-primary);
}

.lite-info-card p {
    color: var(--lite-text-light);
    margin-bottom: 1rem;
}

.lite-info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lite-info-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--lite-text);
}

.lite-info-card li i {
    color: var(--lite-accent);
    font-size: 1.25rem;
}

/* Dashboard Styles */
.lite-nav {
    background: linear-gradient(135deg, var(--lite-primary), var(--lite-primary-dark));
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--lite-shadow);
}

.lite-nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.lite-nav-logo {
    height: 50px;
    width: auto;
}

.lite-nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lite-nav-username {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.lite-nav-logout {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.lite-nav-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lite-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.lite-welcome {
    text-align: center;
    margin-bottom: 2rem;
}

.lite-welcome h2 {
    font-size: 2rem;
    color: var(--lite-text);
    margin-bottom: 0.5rem;
}

.lite-subtitle {
    color: var(--lite-text-light);
    font-size: 1rem;
}

.lite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.lite-card {
    background: var(--lite-card-bg);
    border-radius: var(--lite-radius);
    box-shadow: var(--lite-shadow);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    max-height: 300px;
    scrollbar-gutter: stable both-edges !important
}

.lite-card-header {
    background: linear-gradient(135deg, var(--lite-primary), var(--lite-primary-dark));
    color: white;
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.lite-card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lite-card-body {
    padding: 1.25rem;
    flex: 1;
}

.lite-loading,
.lite-empty {
    text-align: center;
    color: var(--lite-text-light);
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lite-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lite-list-item {
    padding: 1rem;
    border: 1px solid var(--lite-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.lite-list-item-link {
    text-decoration: none;
    color: inherit;
}

.lite-list-item-link:hover {
    border-color: var(--lite-primary);
    box-shadow: var(--lite-shadow);
    transform: translateY(-2px);
}

.lite-event-date,
.lite-pay-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lite-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.lite-event-title,
.lite-pay-type {
    font-weight: 600;
    color: var(--lite-text);
}

.lite-form-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--lite-primary);
}

.lite-highlight {
    text-align: center;
    padding: 1.5rem;
}

.lite-holiday-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lite-text);
    margin-bottom: 0.5rem;
}

.lite-holiday-date {
    color: var(--lite-text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.lite-holiday-days {
    display: inline-block;
    background: var(--lite-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 0.5rem;
}

.lite-newsletter-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.lite-newsletter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--lite-text);
}

.lite-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--lite-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lite-download-btn:hover {
    background: var(--lite-primary-dark, #0056b3);
    transform: translateY(-2px);
    box-shadow: var(--lite-shadow);
}

.lite-download-btn i {
    font-size: 1.25rem;
}

.lite-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--lite-text-light);
    font-size: 0.9rem;
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ph-spin {
    animation: spin 1s linear infinite;
}

/* Events Card - expanded to fit action buttons */
.lite-card-events {
    max-height: 480px;
}

.lite-event-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lite-event-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lite-event-session {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lite-text-light);
    font-size: 0.85rem;
}

.lite-event-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* "I Want to Attend" button */
.lite-btn-attend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--lite-accent), #059669);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lite-btn-attend:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.lite-btn-attend:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Cancel request button */
.lite-btn-cancel {
    background: none;
    border: 1px solid var(--lite-border);
    color: var(--lite-text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lite-btn-cancel:hover:not(:disabled) {
    border-color: var(--lite-danger);
    color: var(--lite-danger);
}

.lite-btn-cancel:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status badges */
.lite-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.lite-status-registered {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.lite-status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.lite-status-full {
    background: rgba(100, 116, 139, 0.1);
    color: var(--lite-text-light);
}

.lite-registered-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.lite-session-details {
    font-size: 0.75rem;
    color: var(--lite-text-light);
    text-align: right;
}

.lite-request-pending {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toast notification */
.lite-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

.lite-toast-success {
    background: #059669;
    color: white;
}

.lite-toast-error {
    background: var(--lite-danger);
    color: white;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .lite-nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .lite-nav-brand h1 {
        font-size: 1.25rem;
    }

    .lite-nav-user {
        width: 100%;
        justify-content: space-between;
    }

    .lite-welcome h2 {
        font-size: 1.5rem;
    }

    .lite-grid {
        grid-template-columns: 1fr;
    }

    .lite-login-card,
    .lite-info-card {
        padding: 2rem 1.5rem;
    }

    .lite-brand {
        font-size: 1.75rem;
    }

    .lite-btn-attend {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
    }

    .lite-event-action {
        flex-wrap: wrap;
    }

    .lite-toast {
        left: 1rem;
        right: 1rem;
        transform: none;
        bottom: 1rem;
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translateY(1rem);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .lite-nav-username {
        font-size: 0.9rem;
    }

    .lite-nav-logout {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
}