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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.navbar {
    background: linear-gradient(180deg, #B71C1C 0%, #C41E3A 50%, #6B1820 100%);
    color: white;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}

.navbar-brand h1 {
    font-size: 24px;
    padding: 15px 0;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    opacity: 0.9;
}

.username-link {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
}

.username-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

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

.btn-sync {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-sync:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
}

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

/* Hamburger menu */
.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-today, .btn-nav {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(180deg, #B71C1C 0%, #C41E3A 50%, #6B1820 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 24, 32, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-today {
    background: #fff;
    color: #C41E3A;
    border: 2px solid #C41E3A;
}

.btn-today:hover {
    background: #f0f0f0;
}

.btn-nav {
    background: white;
    color: #C41E3A;
    border: 2px solid #C41E3A;
    min-width: 40px;
    padding: 8px;
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    .btn-nav {
        min-width: 20px !important;
        padding: 1px 2px !important;
        font-size: 10px !important;
        height: 24px !important;
    }
}

@media screen and (max-device-width: 480px) {
    .btn-nav {
        min-width: 20px !important;
        padding: 1px 2px !important;
        font-size: 10px !important;
        height: 24px !important;
    }
}

.btn-nav:hover {
    background: #f0f0f0;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(107, 24, 32, 0.15);
}

/* Modal */
.modal {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
}

.modal::backdrop {
    background: rgba(0,0,0,0.5);
}

.modal-content {
    padding: 30px;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-buttons button {
    flex: 1;
}

/* Daily View */
.daily-view {
    max-width: 900px;
    margin: 0 auto;
}

.date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.date-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.date-display h2 {
    font-size: 20px;
    color: #333;
}

.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.filters {
    display: flex;
    gap: 10px;
}

.filters select {
    min-width: 150px;
}

.filter-btn-wrap {
    position: relative;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 200px;
    padding: 14px;
}

.filter-dropdown.open {
    display: block;
}

.filter-section-title {
    font-weight: 600;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 6px;
}

.filter-section-title:first-child {
    margin-top: 0;
}

.filter-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.view-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    margin-top: 10px;
    text-align: center;
}

.date-picker-input {
    padding: 4px 8px;
    border: 2px solid #C41E3A;
    border-radius: 6px;
    font-size: 13px;
}

.date-picker-input::placeholder {
    color: #999;
}
    font-size: 14px;
    color: #333;
    cursor: pointer;
    background: white;
}

.date-picker-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 24, 32, 0.15);
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #C41E3A;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.task-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.task-card.event {
    border-left-color: #2196F3;
}

.task-card.lead {
    border-left-color: #FF9800;
}

.task-card.custom {
    border-left-color: #9C27B0;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.task-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-blank {
    background: #f0f0f0;
    color: #666;
}

.status-reviewing {
    background: #fffef5;
    color: #d4a500;
}

.status-contacted {
    background: #f3e5f5;
    color: #6a1b9a;
}

.status-left-voicemail {
    background: #e1bee7;
    color: #4a148c;
}

.status-call-attempted {
    background: #ffe0b2;
    color: #e65100;
}

.status-completed {
    background: #c8e6c9;
    color: #1b5e20;
}

.status-overdue {
    background: #ffcdd2;
    color: #b71c1c;
}

.task-details {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.task-detail-row {
    margin-bottom: 6px;
}

.task-detail-label {
    font-weight: 600;
    color: #333;
}

.task-controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.task-dropdown {
    flex: 1;
    min-width: 150px;
}

.assignment-bubbles-container {
    flex: 1;
}

.assignment-bubbles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    cursor: pointer;
    padding: 4px 0;
}

.emp-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 12px;
    background: #C41E3A;
}

.btn-add-emp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px dashed #ddd;
    background: transparent;
    color: #C41E3A;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-emp:hover {
    border-color: #C41E3A;
    background: #f0f0f0;
}

.emp-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.emp-picker-modal {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.emp-picker-modal h3 {
    margin-bottom: 16px;
    color: #333;
    font-size: 16px;
}

.emp-picker-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.emp-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.emp-picker-item:hover {
    background: #f5f5f5;
}

.emp-picker-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.emp-bubble-picker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.emp-picker-buttons {
    display: flex;
    gap: 10px;
}

.emp-picker-buttons button {
    flex: 1;
}

/* Calendar View */
.calendar-view {
    max-width: 1400px;
    margin: 0 auto;
}

.week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.week-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.week-display h2 {
    font-size: 28px;
    color: #333;
}

.sync-info {
    font-size: 14px;
    color: #666;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.day-column {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: visible;
    position: relative;
}

.day-header {
    background: linear-gradient(180deg, #B71C1C 0%, #C41E3A 50%, #6B1820 100%);
    color: white;
    padding: 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-name {
    flex: 1;
    text-align: center;
}

.day-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
    flex-shrink: 0;
}

.day-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.tasks-list {
    padding: 12px;
    min-height: 200px;
}

.task-block {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid #C41E3A;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.task-block:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transform: translateX(2px);
}

.task-block.event {
    border-left-color: #2196F3;
}

.task-block.lead {
    border-left-color: #FF9800;
}

.task-block.custom {
    border-left-color: #9C27B0;
}

.task-block-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.task-block-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.task-block-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #e0e0e0;
    color: #666;
    cursor: pointer;
    transition: background 0.2s;
}

.task-block-status:hover {
    background: #d0d0d0;
}

#statusDropdown {
    position: fixed !important;
    z-index: 10000 !important;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
/* Mobile-first: Extra small devices (320px - 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
        flex-wrap: wrap;
        position: relative;
    }

    .navbar-brand {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand h1 {
        font-size: 16px;
        padding: 8px 0;
        flex: 1;
    }

    #hamburgerMenu {
        display: flex !important;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, #B71C1C 0%, #C41E3A 50%, #6B1820 100%);
        padding: 0;
    }

    .navbar-menu.active {
        max-height: 500px;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-link {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 8px;
        font-size: 14px;
    }

    .nav-user {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .username {
        font-size: 12px;
    }

    .btn-logout, .btn-sync {
        width: 100%;
        padding: 12px 10px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Container */
    .container {
        padding: 10px;
    }

    /* Buttons */
    .btn-primary, .btn-secondary, .btn-today, .btn-nav {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 44px;
        min-width: 44px;
    }

    .btn-nav {
        flex: initial;
        min-width: 150px !important;
        padding: 12px 14px !important;
        font-size: 14px !important;
    }

    .date-header {
        justify-content: center !important;
        gap: 10px !important;
    }

    /* Daily View */
    .daily-view {
        display: flex;
        flex-direction: column;
    }

    .date-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .date-display {
        flex: 1;
        min-width: 100%;
    }

    .date-display h2 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .calendar-view .date-display {
        order: 2;
    }

    .daily-view .date-display {
        order: 2;
    }

    .week-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .week-display {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .week-display h2 {
        font-size: 13px;
        margin: 0;
        word-break: break-word;
    }

    .btn-today {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 40px;
        white-space: nowrap;
    }

    .btn-nav {
        padding: 10px 8px;
        font-size: 14px;
        min-height: 40px;
    }

    .view-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .date-picker-input {
        padding: 6px 8px;
        font-size: 12px;
        max-width: 50px;
    }

    .view-controls {
        flex-direction: column;
        gap: 10px;
    }

    .filters {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .filters select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        min-height: 44px;
    }

    /* Task cards */
    .task-card {
        padding: 12px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .task-card-header {
        flex-direction: column;
        gap: 8px;
    }

    .task-title {
        font-size: 15px;
    }

    .task-meta {
        font-size: 12px;
        gap: 8px;
    }

    .employee-bubble {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    /* Calendar view */
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calendar-day {
        min-height: 150px;
    }

    .calendar-day-header {
        font-size: 14px;
        padding: 8px;
    }

    .calendar-day-date {
        font-size: 16px;
    }

    .calendar-event {
        padding: 6px;
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* Modal */
    .modal-content {
        padding: 15px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-content h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ddd;
        border-radius: 4px;
        min-height: 44px;
    }

    textarea {
        min-height: 100px;
        resize: vertical;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .modal-buttons button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 44px;
    }

    /* Admin dashboard */
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }

    /* Status dropdown button */
    .btn-status {
        padding: 10px 12px;
        font-size: 12px;
        min-height: 44px;
        flex: 1;
        min-width: 100%;
    }

    .task-dropdown {
        flex: 1;
        min-width: 100%;
    }

    .assignment-bubbles-container {
        width: 100%;
    }

    .emp-picker-overlay {
        padding: 20px;
    }

    .emp-picker-modal {
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
    }

    .emp-picker-item {
        padding: 12px;
        margin-bottom: 8px;
    }

    .emp-bubble {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }

    .btn-add-emp {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 18px;
    }

    /* Audit log table */
    table {
        font-size: 12px;
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    thead {
        display: none;
    }

    tbody {
        display: block;
    }

    tr {
        display: block;
        border-bottom: 2px solid #ddd;
        margin-bottom: 12px;
        padding: 8px;
    }

    td {
        display: block;
        text-align: right;
        padding: 8px 0;
        border: none;
    }

    td:before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #666;
    }
}

/* Small tablets and landscape phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }

    .navbar-brand h1 {
        font-size: 20px;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .btn-logout, .btn-sync {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    /* Buttons */
    .btn-primary, .btn-secondary, .btn-today, .btn-nav {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 40px;
    }

    .view-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filters {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .filters select {
        flex: 1;
        min-height: 40px;
    }

    /* Calendar */
    .calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .calendar-day {
        min-height: 200px;
    }

    .week-header {
        flex-direction: row;
        gap: 10px;
    }

    .week-display {
        flex-direction: row;
        gap: 10px;
    }

    .week-display h2 {
        font-size: 18px;
    }

    .btn-today {
        font-size: 13px;
        padding: 10px 12px;
    }

    .date-picker-input {
        padding: 7px 10px;
        font-size: 13px;
        max-width: 50px;
    }

    /* Modal */
    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="time"],
    textarea,
    select {
        min-height: 40px;
        font-size: 14px;
    }

    .modal-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .modal-buttons button {
        flex: 1;
        min-height: 40px;
    }

    .employee-bubble {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    /* Admin */
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium and larger screens (769px+) - existing styling takes effect */
@media (min-width: 769px) {
    .navbar {
        flex-direction: row;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 30px;
    }

    .view-controls {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .filters {
        flex-direction: row;
        gap: 10px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }

    .modal-buttons {
        flex-direction: row;
        justify-content: flex-end;
        gap: 10px;
    }
}

/* ============================================================================
   SMOOTH STATUS DROPDOWN
   ============================================================================ */

.status-select-wrapper {
    position: relative;
    display: inline-block;
}

.status-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    white-space: nowrap;
}

.status-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Status color variants */
.status-btn.status-blank { background: #9e9e9e; }
.status-btn.status-reviewing { background: #f9a825; }
.status-btn.status-contacted { background: #9c27b0; }
.status-btn.status-left_voicemail { background: #ab47bc; }
.status-btn.status-call_attempted { background: #ff9800; }
.status-btn.status-completed { background: #4caf50; }
.status-btn.status-overdue { background: #e53935; }

.status-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.status-menu.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-family: inherit;
}

.status-option:hover {
    background: #f5f5f5;
}

.status-option:first-child {
    border-radius: 8px 8px 0 0;
}

.status-option:last-child {
    border-radius: 0 0 8px 8px;
}

.status-option-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-option[data-value="blank"] .status-option-dot { background: #9e9e9e; }
.status-option[data-value="reviewing"] .status-option-dot { background: #f9a825; }
.status-option[data-value="contacted"] .status-option-dot { background: #9c27b0; }
.status-option[data-value="left_voicemail"] .status-option-dot { background: #ab47bc; }
.status-option[data-value="call_attempted"] .status-option-dot { background: #ff9800; }
.status-option[data-value="completed"] .status-option-dot { background: #4caf50; }
.status-option[data-value="overdue"] .status-option-dot { background: #e53935; }

/* User Profile */
.profile-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.profile-card h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #B71C1C;
    padding-bottom: 15px;
}

.profile-section {
    margin-bottom: 30px;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.readonly-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
    color: #333;
    cursor: default;
}

.readonly-input:disabled {
    opacity: 1;
}

.profile-info {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 30px;
    border-left: 4px solid #B71C1C;
}

.profile-info p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.profile-actions {
    display: flex;
    gap: 10px;
}

.btn-back {
    flex: 1;
    padding: 12px 20px;
    background: #B71C1C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}

.btn-back:hover {
    background: #8b1515;
}

.profile-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.profile-input:focus {
    outline: none;
    border-color: #B71C1C;
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.password-form {
    background: #fff9f5;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #B71C1C;
    margin-top: 20px;
}

.password-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.profile-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #c62828;
}

.profile-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #2e7d32;
}

.btn-update {
    background: #B71C1C;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-update:hover {
    background: #8b1515;
}
