:root {
    --primary-color: #E42219;
    --primary-dark: #C01D15;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding-top: 70px;
    padding-bottom: 80px;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.header-notifications {
    position: relative;
    cursor: pointer;
}

.header-notifications i {
    font-size: 24px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

.page-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.card:active {
    transform: scale(0.98);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    text-decoration: none;
    padding: 10px 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item:active {
    transform: scale(0.95);
}

/* Stats Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Today's Hours Card */
.today-hours-card {
    background: linear-gradient(135deg, rgba(228, 34, 25, 0.05), rgba(192, 29, 21, 0.02));
    border: 2px solid rgba(228, 34, 25, 0.1);
    padding: 20px;
}

.today-hours-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.today-hours-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.today-hours-icon i {
    font-size: 24px;
}

.today-hours-content {
    flex: 1;
}

.today-hours-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.today-hours-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.today-hours-value span:first-child {
    color: var(--primary-color);
    font-size: 28px;
}

.today-hours-progress {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.today-hours-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.5s ease;
    width: 0%;
}

.today-hours-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.today-hours-percentage {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.today-hours-branches {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

/* Locations Sections */
.locations-section {
    margin-bottom: 25px;
}

.locations-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.locations-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    padding-bottom: 5px;
}

.locations-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.locations-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.locations-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.locations-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.locations-scroll-content {
    display: flex;
    gap: 12px;
    padding: 5px 0;
    min-width: min-content;
}

.location-card {
    min-width: 140px;
    max-width: 140px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.location-card.remaining {
    cursor: pointer;
}

.location-card.remaining:active {
    transform: scale(0.95);
}

.location-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 24px;
}

.location-card.done .location-card-icon {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.location-card.remaining .location-card-icon {
    background-color: rgba(228, 34, 25, 0.1);
    color: var(--primary-color);
}

.location-card.ongoing {
    cursor: pointer;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(228, 34, 25, 0.05), rgba(192, 29, 21, 0.02));
}

.location-card.ongoing .location-card-icon {
    background-color: rgba(228, 34, 25, 0.15);
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.location-card.ongoing:active {
    transform: scale(0.95);
}

.location-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-wrap: break-word;
    line-height: 1.3;
}

.location-card-empty {
    min-width: 140px;
    max-width: 140px;
    background: #f8f9fa;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #6c757d;
    font-size: 12px;
    flex-shrink: 0;
}

.location-card-empty i {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* Quick Actions */
.quick-action {
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.quick-action:active {
    transform: scale(0.95);
}

.quick-action i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.quick-action-label {
    font-size: 13px;
    font-weight: 500;
}

/* Page Content (Hidden by default) */
.page-content {
    display: none;
}

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

/* List Items */
.list-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.list-item-subtitle {
    font-size: 13px;
    color: #6c757d;
}

/* Current Location Display */
.selected-location-display,
.current-location-display {
    background: linear-gradient(135deg, rgba(228, 34, 25, 0.1), rgba(192, 29, 21, 0.05));
    border: 2px solid rgba(228, 34, 25, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.4s ease-in;
}

.location-display-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.location-display-icon i {
    font-size: 20px;
}

.location-display-content {
    flex: 1;
}

.location-display-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    font-weight: 600;
}

.location-display-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Stopwatch Styles */
.stopwatch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.stopwatch-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(228, 34, 25, 0.3);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.stopwatch-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent 30%
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.stopwatch-circle.running::before {
    opacity: 1;
}

.stopwatch-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
}

.stopwatch-circle:active {
    transform: scale(0.92);
}

.stopwatch-circle.running {
    animation: pulse 2s infinite, rotateGradient 8s linear infinite;
}

.stopwatch-circle.start-animation {
    animation: startScale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(228, 34, 25, 0.3), 0 0 0 0 rgba(228, 34, 25, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(228, 34, 25, 0.6), 0 0 0 10px rgba(228, 34, 25, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateGradient {
    0% {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }
    25% {
        background: linear-gradient(225deg, var(--primary-color), var(--primary-dark));
    }
    50% {
        background: linear-gradient(315deg, var(--primary-color), var(--primary-dark));
    }
    75% {
        background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    }
    100% {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }
}

@keyframes startScale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.stopwatch-time {
    color: white;
    font-size: 36px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
    transition: transform 0.2s, text-shadow 0.3s;
    position: relative;
    z-index: 1;
}

.stopwatch-circle.running .stopwatch-time {
    animation: timePulse 1s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes timePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stopwatch-label {
    color: white;
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s, transform 0.3s;
    position: relative;
    z-index: 1;
}

.stopwatch-circle.running .stopwatch-label {
    animation: labelFade 2s ease-in-out infinite;
}

@keyframes labelFade {
    0%, 100% {
        opacity: 0.9;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* Ripple effect on click */
.stopwatch-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.stopwatch-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.stopwatch-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.stopwatch-btn-reset {
    background-color: #6c757d;
    color: white;
}

.stopwatch-btn-reset:hover {
    background-color: #5a6268;
}

/* Visit Confirmation Modal */
.visit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.visit-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.visit-modal {
    background: white;
    border-radius: 16px;
    padding: 25px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.visit-modal-overlay.show .visit-modal {
    transform: scale(1);
}

.visit-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff3cd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.visit-modal-icon i {
    font-size: 30px;
    color: #ffc107;
}

.visit-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.visit-modal-message {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

.visit-modal-time {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 25px;
}

.visit-modal-buttons {
    display: flex;
    gap: 10px;
}

.visit-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.visit-modal-btn:active {
    transform: scale(0.95);
}

.visit-modal-btn-continue {
    background-color: var(--primary-color);
    color: white;
}

.visit-modal-btn-continue:hover {
    background-color: var(--primary-dark);
}

.visit-modal-btn-end {
    background-color: #6c757d;
    color: white;
}

.visit-modal-btn-end:hover {
    background-color: #5a6268;
}

.visit-modal-btn-close {
    background-color: #6c757d;
    color: white;
}

.visit-modal-btn-close:hover {
    background-color: #5a6268;
}

.visit-modal-btn-confirm {
    background-color: var(--primary-color);
    color: white;
}

.visit-modal-btn-confirm:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

.visit-modal-btn-confirm:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Location Selection Modal */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.location-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.location-modal {
    background: white;
    border-radius: 16px;
    padding: 25px;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.location-modal-overlay.show .location-modal {
    transform: scale(1);
}

.location-modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.location-search-container {
    position: relative;
    margin-bottom: 15px;
}

.location-search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.location-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.location-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.location-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.location-list-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
}

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

.location-list-item:hover {
    background-color: #f8f9fa;
}

.location-list-item.active {
    background-color: rgba(228, 34, 25, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.location-list-item i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.location-list-empty {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
}

.location-modal-buttons {
    display: flex;
    gap: 10px;
}

.location-modal-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.location-modal-btn:active {
    transform: scale(0.95);
}

.location-modal-btn-cancel {
    background-color: #6c757d;
    color: white;
}

.location-modal-btn-cancel:hover {
    background-color: #5a6268;
}

.location-modal-btn-confirm {
    background-color: var(--primary-color);
    color: white;
}

.location-modal-btn-confirm:hover {
    background-color: var(--primary-dark);
}

.location-modal-btn-confirm:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Thank You Modal */
.thankyou-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.thankyou-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.thankyou-modal {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
    text-align: center;
}

.thankyou-modal-overlay.show .thankyou-modal {
    transform: scale(1);
}

.thankyou-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: thankYouPulse 0.6s ease-out;
}

@keyframes thankYouPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.thankyou-modal-icon i {
    font-size: 40px;
    color: white;
}

.thankyou-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.thankyou-modal-message {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.5;
}

.thankyou-modal-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--primary-color);
    color: white;
}

.thankyou-modal-button:hover {
    background-color: var(--primary-dark);
}

.thankyou-modal-button:active {
    transform: scale(0.98);
}

/* Visit Scheduler Styles */
.day-buttons-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.day-btn {
    flex: 1;
    min-width: 60px;
    max-width: 70px;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.day-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(228, 34, 25, 0.05);
}

.day-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.day-btn-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.day-btn.active .day-btn-label {
    color: white;
}

.branch-selection-area {
    animation: fadeIn 0.3s ease-in;
}

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

.branch-list {
    max-height: 400px;
    overflow-y: auto;
}

.branch-item {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    background: white;
}

.branch-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(228, 34, 25, 0.05);
}

.branch-item.selected {
    background-color: rgba(228, 34, 25, 0.1);
    border-color: var(--primary-color);
}

.branch-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.branch-item.selected .branch-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.branch-item.selected .branch-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.branch-info {
    flex: 1;
}

.branch-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 15px;
}

.branch-address {
    font-size: 12px;
    color: #6c757d;
}

.selected-count {
    text-align: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}

/* Scheduler Helper Message */
.scheduler-helper-message {
    background: linear-gradient(135deg, rgba(228, 34, 25, 0.1), rgba(192, 29, 21, 0.05));
    border: 2px dashed rgba(228, 34, 25, 0.3);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease-in;
}

.scheduler-helper-message.hidden {
    display: none;
}

.helper-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(228, 34, 25, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.helper-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.helper-text {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.helper-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Branches Page Styles */
.branches-list {
    max-height: 500px;
    overflow-y: auto;
}

.branch-list-item {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.2s;
}

.branch-list-item:hover {
    border-color: var(--primary-color);
    background-color: rgba(228, 34, 25, 0.02);
}

.branch-list-item-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.branch-list-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(228, 34, 25, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.branch-list-item-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.branch-edit-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.branch-edit-btn:hover {
    background-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.branch-edit-btn:active {
    transform: scale(0.95);
}

.branch-delete-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.branch-delete-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.branch-delete-btn:active {
    transform: scale(0.95);
}

.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-message i {
    font-size: 48px;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.empty-message p {
    font-size: 14px;
    margin: 0;
}

/* Report Item Styles */
.report-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.report-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.report-item-content {
    flex: 1;
}

.report-item-header {
    display: flex;
    align-items: center;
}

.report-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(228, 34, 25, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.report-item-icon i {
    font-size: 18px;
}

.report-item-info {
    flex: 1;
}

.report-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.report-item-subtitle {
    font-size: 13px;
    color: #6c757d;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.report-item-subtitle i {
    margin-right: 5px;
}

.report-item-status {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

