:root {
    --primary-purple: #7c3aed;
    --light-purple: #a855f7;
    --dark-purple: #5b21b6;
    --purple-bg: #f3f4f6;
    --text-gray: #6b7280;
    --text-dark: #374151;
    --border-gray: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--purple-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

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

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-gray);
    font-size: 1.125rem;
}

.tabs-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tabs-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-gray);
    background: #fafafa;
    padding: 1rem;
}

.tabs-buttons {
    display: flex;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: #f0f0f0;
}

.tab-button.active {
    background: var(--white);
    color: var(--primary-purple);
    border-bottom: 2px solid var(--primary-purple);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-icon {
    width: 20px;
    height: 20px;
}

.calendar-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.calendar-nav-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--purple-bg);
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-gray);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
        box-sizing: border-box;
}

.calendar-day-header {
    background: #f8fafc;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.calendar-day {
    background: var(--white);
    min-height: 120px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
    overflow: hidden;
        box-sizing: border-box;
}

.calendar-day:hover {
    background: #fafafa;
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.calendar-day.today {
    background: #ede9fe;
}

.calendar-day.today .calendar-day-number {
    background: var(--primary-purple);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.calendar-event {
    background: var(--primary-purple);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        line-height: 1.2;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
}

.calendar-event:hover {
    background: var(--dark-purple);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: var(--dark-purple);
}

.btn-secondary {
    background: #f8f9fa;
    color: var(--text-dark);
    border: 1px solid #e9ecef;
}

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

.btn-danger {
    background: #dc2626;
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-icon {
    padding: 0.5rem;
    min-width: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}
.modal .btn {
    min-width: 100px;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    animation: slideInDown 0.3s ease-out;
    cursor: pointer;
}

.alert-success {
    background: #d1f2eb;
    color: #0f5132;
    border: 1px solid #a3d9cc;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
}

.alert.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.alert::after {
    content: "✕";
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.7;
    cursor: pointer;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-gray);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background: var(--purple-bg);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Password input wrapper and toggle button */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 3rem;
    /* Make space for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    background: var(--purple-bg);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: var(--text-gray);
    transition: color 0.2s;
}

.password-toggle:hover .eye-icon {
    color: var(--primary-purple);
}
.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-select[multiple] {
    appearance: auto;
    background-image: none;
    padding-right: 0.75rem;
    height: auto;
}

.form-select[multiple] option {
    padding: 0.5rem;
    border-radius: 4px;
    margin: 2px;
}

.form-select[multiple] option:checked {
    background: var(--primary-purple);
    color: var(--white);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.checkbox-item:hover {
    background: var(--purple-bg);
}

.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-purple);
}

.events-list {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.event-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    transition: background-color 0.2s;
}

.event-item:hover {
    background: #fafafa;
}

.event-item:last-child {
    border-bottom: none;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
}

.event-assignments {
    display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .event-assignments.hidden {
    display: none;
}

.lineup-songs.hidden {
    display: none;
}
/* Notification Styles */
.notification-bell {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--text-dark);
}

.notification-btn:hover {
    background-color: var(--purple-bg);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(25%, -25%);
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

/* Mobile responsive notification dropdown */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 70vh;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        animation: slideDown 0.3s ease-out;
    }
    
    .notification-header {
        padding: 20px;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .notification-header h4 {
        font-size: 18px;
    }
    
    .notification-item {
        padding: 16px 20px;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .notification-title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .notification-message {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .notification-time {
        font-size: 12px;
    }
    
    .mark-all-read-btn {
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 6px;
        background-color: var(--primary-purple);
        color: white;
        border: none;
        text-decoration: none;
    }
    
    .mark-all-read-btn:hover {
        background-color: var(--dark-purple);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown.show {
    display: block;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.notification-overlay.show {
    display: block;
}

.notification-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.mark-all-read-btn {
    background: none;
    border: none;
    color: var(--primary-purple);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

.mark-all-read-btn:hover {
    color: var(--dark-purple);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
}

.notification-item:hover {
    background-color: var(--purple-bg);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: #eff6ff;
    border-left: 3px solid var(--primary-purple);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-delete-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    opacity: 0.6;
}

.notification-delete-btn:hover {
    background-color: #fee2e2;
    color: #dc2626;
    opacity: 1;
}

/* Delete Confirmation Modal */
.delete-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.delete-confirmation-modal {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease-out;
}

.delete-confirmation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-gray);
}

.delete-confirmation-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.delete-confirmation-body {
    padding: 20px 24px;
}

.delete-confirmation-body p {
    margin: 0 0 8px 0;
    color: var(--text-dark);
    line-height: 1.5;
}

.delete-warning {
    color: var(--text-gray);
    font-size: 14px;
    font-style: italic;
}

.delete-confirmation-buttons {
    display: flex;
    gap: 12px;
    padding: 16px 24px 20px;
    justify-content: flex-end;
}

.delete-confirmation-buttons .btn {
    min-width: 80px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-gray);
}
.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.event-datetime {
    color: var(--text-gray);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.assignment-group {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.assignment-role {
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.assignment-members {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.assignment-member {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.assignment-backup {
    color: var(--text-gray);
    font-style: italic;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--light-purple) 100%);
}

.auth-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.auth-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Registration form specific styles */
.auth-form [style*="grid-template-columns"] {
    gap: 0.75rem !important;
}

.auth-form [style*="grid-template-columns"] .form-group {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .calendar-grid {
        font-size: 0.875rem;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .event-assignments {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .auth-form [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== COMPREHENSIVE MOBILE RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    /* Container and spacing */
    .container {
        padding: 0 10px;
    }
    
    /* Header responsive */
    .header {
        position: static;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .logo {
        font-size: 1rem;
        text-align: center;
        order: 1;
    }
    
    .user-menu {
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        order: 2;
        flex-wrap: wrap;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .nav-link svg {
        width: 14px;
        height: 14px;
    }
    
    /* Page header */
    .page-header {
        text-align: center;
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .page-subtitle {
        font-size: 0.85rem;
    }
    
    /* Tabs navigation - stack vertically on mobile */
    .tabs-nav {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .tabs-buttons {
        width: 100%;
        justify-content: center;
        gap: 0.25rem;
    }
    
    .tab-button {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        min-width: 0;
    }
    
    .tab-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Calendar responsive */
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .calendar-nav {
        justify-content: center;
        gap: 1rem;
    }
    
    .calendar-nav-btn {
        padding: 0.5rem;
    }
    
    .calendar-title {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .calendar-grid {
        font-size: 0.75rem;
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 70px;
            padding: 0.3rem;
    }
    
    .calendar-day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .calendar-day-number {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .calendar-event {
        font-size: 0.85rem;
            padding: 0.3rem 0.5rem;
        margin-bottom: 0.125rem;
        border-radius: 3px;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            line-height: 1.3;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
    }
    
    /* Date filter responsive */
    .events-filter {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-label {
        min-width: auto;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-input {
        width: 100%;
        min-width: auto;
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .filter-controls .btn-sm {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .filter-results {
        margin-top: 0.5rem;
    }
    
    .filter-status {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }

    /* Events list responsive */
    .events-list {
        padding: 0;
    }
}

/* Events Filter Styles */
.events-filter {
    background: var(--white);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 120px;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.filter-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text-dark);
    min-width: 150px;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-status {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
}

.events-list {
    padding: 0;
}

    .event-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border-radius: 6px;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .event-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .event-datetime {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }
    
    .event-datetime svg {
        width: 14px;
        height: 14px;
    }
    
    .event-actions {
        width: 100%;
        justify-content: stretch;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .event-actions .btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        text-align: center;
        min-width: 0;
        }
        
        .event-actions .btn-icon {
            flex: 0 0 auto;
            width: 40px;
            height: 40px;
            padding: 0.5rem;
    }
    
    /* Assignment groups responsive */
.event-assignments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}
.lineups-container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.lineups-header h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.lineups-header p {
    color: var(--text-gray);
}

.lineups-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lineup-item {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
    transition: background-color 0.2s;
    overflow: hidden;
}

.lineup-item:hover {
    background: #fafafa;
}

.lineup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.lineup-event-title {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.lineup-datetime {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.lineup-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lineup-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.lineup-status-for_approval {
    background-color: #fef3c7;
    color: #92400e;
}

.lineup-status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.lineup-status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.lineup-status-none {
    background-color: #f3f4f6;
    color: var(--text-gray);
}

.lineup-songs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.lineup-songs h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.song-type {
    background-color: var(--primary-purple);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

.song-title {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.song-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #f3f4f6;
    transition: all 0.2s ease;
}

.song-link:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    text-decoration: none;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

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

.song-set {
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1.5rem;
    background-color: #f9fafb;
}

.song-set h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.custom-song-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.lineup-review {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lineup-review .songs-list .song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    margin-bottom: 0.75rem;
}

.lineup-info {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.lineup-info h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.lineup-info p {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.lineup-info strong {
    color: var(--text-dark);
}

.approval-form {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-gray);
}

.event-tooltip {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-width: 300px;
    font-size: 0.9rem;
}

.tooltip-header h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tooltip-songs h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tooltip-song {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 4px;
}

.tooltip-song-type {
    font-weight: 600;
    color: var(--primary-purple);
    font-size: 0.8rem;
}

.tooltip-song-title {
    font-weight: 600;
    color: var(--text-dark);
}

.tooltip-song-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #f3f4f6;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 0.25rem;
}

.tooltip-song-link:hover {
    background-color: var(--primary-purple);
    color: var(--white);
    text-decoration: none;
}
    .assignment-group {
        margin-bottom: 1rem;
        display: block;
    }
                /* Lineup responsive styles */
                .lineup-header {
                    flex-direction: column;
                    gap: 1rem;
                    align-items: stretch;
                }
        
                .lineup-actions {
                    flex-direction: column;
                    gap: 0.5rem;
                    align-items: stretch;
                }
        
                .lineup-actions .btn {
                    width: 100%;
                    text-align: center;
                }
        
                .song-item {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 0.5rem;
                }
        
                .song-type {
                    align-self: flex-start;
                }
        
                .lineup-review .songs-list .song-item {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 0.5rem;
                    padding: 0.75rem;
                }
        
                .lineup-review .song-type {
                    align-self: flex-start;
                }
        
                .custom-song-item {
                    grid-template-columns: 1fr;
                    gap: 0.75rem;
                }
        
                .form-container {
                    padding: 1rem;
                    margin: 0 0.5rem;
                }
        
                .song-set {
                    padding: 1rem;
                }
        
                .lineup-review {
                    gap: 1rem;
                }
        
                .lineup-info,
                .approval-form {
                    padding: 1rem;
                }
        
                .form-actions {
                    flex-direction: column;
                    gap: 0.5rem;
                }
        
                .form-actions .btn {
                    width: 100%;
                }
        
                .event-tooltip {
                    max-width: 250px;
                    font-size: 0.8rem;
                    padding: 0.75rem;
                }
        
                .tooltip-song {
                    padding: 0.25rem;
                }
        
                /* Additional mobile improvements for lineups */
                .lineups-container {
                    padding: 0 0.5rem;
                }
        
                .lineup-item {
                    padding: 1rem;
                    margin-bottom: 1rem;
                }
        
                .lineup-event-title {
                    font-size: 1.1rem;
                }
        
                .lineup-datetime {
                    font-size: 0.8rem;
                }
        
                .lineup-songs h4 {
                    font-size: 0.9rem;
                }
        
                .songs-list {
                    gap: 0.5rem;
                }
        
                .song-item {
                    padding: 0.5rem;
                }
        
                .song-type {
                    font-size: 0.7rem;
                    min-width: 70px;
                }
        
                .song-title {
                    font-size: 0.9rem;
                }
        
                .song-link {
                    font-size: 0.8rem;
                }
        
                /* Touch-friendly improvements */
                .btn {
                    min-height: 44px;
                    padding: 0.75rem 1rem;
                }
        
                .form-input,
                .form-select {
                    min-height: 44px;
                    font-size: 16px;
                }
        
                .tab-button {
                    min-height: 44px;
                }
        
                .calendar-event {
                    min-height: 32px;
                    padding: 0.4rem 0.5rem;
                        font-size: 0.85rem;
                        width: 100%;
                        max-width: 100%;
                        box-sizing: border-box;
                        line-height: 1.3;
                        font-weight: 500;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                }
    
    .assignment-role {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--primary-purple);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.025em;
    }
    
    .assignment-members {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .assignment-member {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
        background: #f8fafc;
        border-radius: 4px;
        border: 1px solid var(--border-gray);
    }
    
    .assignment-backup {
        background: #fef3c7;
        color: #92400e;
        border-color: #fbbf24;
    }
    
    /* Modals responsive */
    .modal {
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: calc(100vw - 1rem);
        max-width: none;
        margin: 0;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        padding: 1rem;
        border-radius: 8px;
        position: relative;
    }
    
    .modal h2 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .modal p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Forms responsive */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        font-weight: 500;
    }
    
    .form-input,
    .form-select {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .form-select[multiple] {
        min-height: 100px;
        font-size: 0.85rem;
    }
    
    .form-select[multiple] option {
        padding: 0.5rem;
    }
    
    /* Modal buttons responsive */
    .modal .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-width: 80px;
        border-radius: 6px;
    }
    
    .modal-buttons {
        flex-direction: column-reverse;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
    
    .modal-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Auth pages - keep simple */
    .auth-container {
        padding: 1rem;
    }
    
    /* Button improvements */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
        font-weight: 500;
    }
    
    .btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Utility classes */
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-visible {
        display: block !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
    }
    
    .mobile-center {
        text-align: center !important;
    }
}
    
/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .tab-button {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 60px;
            padding: 0.25rem;
    }
    
    .calendar-day-number {
        font-size: 0.7rem;
    }
    
    .calendar-event {
        font-size: 0.8rem;
            padding: 0.25rem 0.4rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            line-height: 1.3;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
    }
    
    .event-actions {
        flex-direction: row;
            flex-wrap: wrap;
            gap: 0.5rem;
    }
    
    .event-actions .btn {
        flex: 1;
            min-width: 0;
            margin-bottom: 0.25rem;
            font-size: 0.75rem;
            padding: 0.5rem 0.4rem;
        }
        
        .event-actions .btn-icon {
            flex: 0 0 auto;
            width: 36px;
            height: 36px;
        margin-bottom: 0.25rem;
    }
    
    .modal-content {
        width: 98vw;
        margin: 0.25rem;
        padding: 0.75rem;
    }
}

/* Tablet portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .calendar-day {
        min-height: 100px;
    }
    
    .modal-content {
        width: 80%;
        max-width: 700px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .event-header {
        flex-direction: row;
        align-items: center;
    }
    
        .event-actions .btn-icon {
            width: 38px;
            height: 38px;
        }
}

/* Desktop enhancements */
@media (min-width: 1025px) {
    .container {
        max-width: 1400px;
    }
    
    .calendar-day {
        min-height: 140px;
    }
    
    .modal-content {
        max-width: 900px;
    }
    
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Daily Verse Styles */
.daily-verse-container {
    margin-bottom: 2rem;
}

.daily-verse-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.daily-verse-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.daily-verse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.daily-verse-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.daily-verse-date {
    font-size: 0.9rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.daily-verse-content {
    position: relative;
    z-index: 1;
}

.verse-reference {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.verse-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.verse-testament {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-verse-actions {
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.daily-verse-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.daily-verse-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Mobile adjustments for daily verse */
@media (max-width: 768px) {
    .daily-verse-card {
        padding: 1.5rem;
    }

    .daily-verse-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .verse-text {
        font-size: 1.1rem;
    }
}

/* Floating Chat Widget Styles */
.floating-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.floating-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.floating-chat-btn:active {
    transform: scale(0.95);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.floating-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.floating-chat-window.show {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.chat-window-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-window-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chat-window-title .chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

.minimize-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.minimize-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-window-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: #f8fafc;
}

.chat-window-messages .message {
    display: flex;
    gap: 0.5rem;
    max-width: 85%;
}

.chat-window-messages .user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-window-messages .bot-message {
    align-self: flex-start;
}

.chat-window-messages .message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-window-messages .user-message .message-avatar {
    background: #3b82f6;
    color: white;
}

.chat-window-messages .bot-message .message-avatar {
    background: #10b981;
    color: white;
}

.chat-window-messages .message-content {
    flex: 1;
}

.chat-window-messages .message-text {
    background: #f1f5f9;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    line-height: 1.4;
    color: #334155;
    font-size: 0.875rem;
}

.chat-window-messages .user-message .message-text {
    background: #3b82f6;
    color: white;
}

.chat-window-messages .message-time {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-window-messages .user-message .message-time {
    text-align: left;
}

.chat-window-input {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.floating-chat-form {
    width: 100%;
}

.chat-window-input .chat-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-window-input .chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-window-input .chat-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.chat-window-input .chat-send-btn {
    padding: 0.75rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window-input .chat-send-btn:hover {
    background: #2563eb;
}

.chat-window-input .chat-send-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f1f5f9;
    border-radius: 12px;
    color: #64748b;
    font-size: 0.875rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness for floating chat */
@media (max-width: 768px) {
    .floating-chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .floating-chat-btn {
        width: 55px;
        height: 55px;
    }

    .floating-chat-window {
        width: calc(100vw - 30px);
        height: 450px;
        right: -15px;
        bottom: 75px;
    }

    .chat-window-messages {
        padding: 0.75rem;
    }

    .chat-window-input {
        padding: 0.75rem;
    }
}