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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    height: 100vh;
    overflow-x: hidden;
}

/* Botón flotante SOS */
.sos-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.sos-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.sos-button:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Login Screen */
.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #1890ff;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

button:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled::before {
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fff2f0;
    color: #ff4d4f;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff4d4f;
    margin-top: 15px;
}

/* Home Screen */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.header h2 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.info-card {
    background: white;
    margin: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.info-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

.menu-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.menu-item:hover::before {
    transform: scaleX(1);
}

.menu-item:active {
    transform: translateY(-2px);
}

.menu-icon {
    margin-bottom: 12px;
    color: #667eea;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-icon {
    color: #764ba2;
    transform: scale(1.1);
}

.menu-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
    line-height: 1.2;
}

.menu-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #7f8c8d;
    line-height: 1.3;
    opacity: 0.8;
}

/* Document Alert Styles - Must override menu-item styles */
@keyframes flashRed {
    0%, 100% { 
        background: #ff4757 !important;
        border: 2px solid #ff3742 !important;
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.6) !important;
    }
    50% { 
        background: #ff6b7a !important;
        border: 2px solid #ff4757 !important;
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.8) !important;
    }
}

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

.menu-item.document-alert {
    animation: flashRed 1.5s infinite !important;
    background: #ff4757 !important;
    border: 2px solid #ff3742 !important;
    position: relative;
}

.menu-item.document-alert .menu-icon {
    filter: brightness(0) invert(1) !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.menu-item.document-alert .menu-icon svg {
    fill: white !important;
    color: white !important;
    opacity: 1 !important;
}

.menu-item.document-alert .menu-title {
    color: white !important;
    font-weight: bold !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.menu-item.document-alert .menu-subtitle {
    color: white !important;
    font-weight: bold !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.menu-item.document-alert::after {
    content: "⚠️";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: pulse 1s infinite;
    z-index: 10;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .header {
        padding: 15px;
    }
    
    .info-card {
        margin: 15px;
    }
    
    .menu-grid {
        padding: 16px;
        gap: 12px;
    }
    
    .menu-item {
        padding: 20px 12px;
        border-radius: 12px;
    }
    
    .menu-icon {
        margin-bottom: 8px;
    }
    
    .menu-title {
        font-size: 14px;
        margin-bottom: 2px;
    }
    
    .menu-subtitle {
        font-size: 11px;
    }
}

/* Profile Modal Styles */
.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.profile-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.profile-header h3 {
    margin: 0;
    color: #1890ff;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f5;
    color: #666;
}

.profile-body {
    padding: 20px;
}

.profile-photo-section {
    text-align: center;
    margin-bottom: 20px;
}

.photo-container {
    position: relative;
    display: inline-block;
}

#profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e8e8e8;
    object-fit: cover;
}

.change-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #1890ff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-form .form-group {
    margin-bottom: 16px;
}

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

.profile-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.profile-form input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.profile-form input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.profile-form small {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.cancel-btn,
.save-btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    min-width: 80px;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background: #e8e8e8;
}

.save-btn {
    background: #1890ff;
    color: white;
}

.save-btn:hover {
    background: #40a9ff;
}

/* PWA Styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Unit Selection Modal Styles */
.unit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.unit-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.unit-header h3 {
    margin: 0;
    color: #1890ff;
    font-size: 18px;
}

.unit-body {
    padding: 20px;
}

.current-unit-section,
.available-units-section {
    margin-bottom: 20px;
}

.current-unit-section h4,
.available-units-section h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.unit-card {
    background: #f9f9f9;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unit-card:hover {
    border-color: #1890ff;
    background: #f0f8ff;
}

.unit-card.selected {
    border-color: #1890ff;
    background: #e6f7ff;
}

.unit-card.current {
    border-color: #52c41a;
    background: #f6ffed;
}

.unit-info {
    display: flex;
    flex-direction: column;
}

.unit-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.unit-details {
    font-size: 12px;
    color: #666;
}

.selected-badge,
.current-badge {
    background: #1890ff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.current-badge {
    background: #52c41a;
}

.loading-units,
.no-units,
.error-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.units-list.scrollable {
    max-height: 250px;
    overflow-y: scroll !important;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px;
    background: #fafafa;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
}

.units-list.scrollable .unit-card {
    position: relative;
    z-index: 2;
}

.error-message {
    color: #ff4d4f;
}

.unit-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.confirm-btn {
    background: #1890ff;
    color: white;
}

.confirm-btn:hover {
    background: #40a9ff;
}

/* Checklist Modal Styles */
.checklist-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.checklist-content {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 800px;
    height: 90vh;
    max-height: 700px;
    min-height: 500px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.checklist-header h3 {
    margin: 0;
    color: #1890ff;
    font-size: 18px;
}

.checklist-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.form-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.form-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    overflow: auto !important;
    border: none;
}

@media (max-width: 480px) {
    .profile-content {
        width: 95%;
        margin: 20px;
    }
    
    .profile-header,
    .profile-body {
        padding: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .save-btn {
        width: 100%;
    }
    
    .unit-content {
        width: 95%;
        margin: 20px;
    }
    
    .unit-header,
    .unit-body {
        padding: 16px;
    }
    
    .unit-actions {
        flex-direction: column;
    }
    
    .cancel-btn,
    .confirm-btn {
        width: 100%;
    }
    
    .checklist-content {
        width: 98%;
        height: 95vh;
    }
    
    .checklist-header {
        padding: 16px;
    }
}

/* Routes Modal Styles */
.routes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.routes-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.routes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.routes-header h3 {
    margin: 0;
    color: #1890ff;
    font-size: 18px;
}

.routes-body {
    padding: 20px;
}

.date-selection {
    margin-bottom: 20px;
}

.date-selection h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

.load-btn {
    width: 100%;
    background: #1890ff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.load-btn:hover {
    background: #40a9ff;
}

.routes-list {
    margin-top: 20px;
}

.routes-list h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.route-card {
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Route card status colors */
.route-card.completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.route-card.in_progress {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.route-card.pending {
    background: linear-gradient(135deg, #ffe8d1, #ffd3a5);
    border-color: #fd7e14;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.2);
}

.route-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.route-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

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

.loading-info {
    font-size: 11px;
    color: #1890ff;
    margin-bottom: 4px;
    font-weight: 500;
}

.route-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.route-status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.route-status.in_progress {
    background: #e6f7ff;
    color: #1890ff;
}

.route-status.completed {
    background: #f6ffed;
    color: #52c41a;
}

.route-status.cancelled {
    background: #fff1f0;
    color: #f5222d;
}

.select-route-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 12px;
}

.select-route-btn:hover {
    background: #40a9ff;
}

/* Route Details Full Screen */
#route-details-screen {
    background: #f5f5f5;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

.route-header {
    background: #1890ff;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: #1890ff;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background: #40a9ff;
}

.route-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.route-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    width: 100%;
    box-sizing: border-box;
}

.route-progress {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #52c41a;
    transition: width 0.3s ease;
}

.stops-list h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
}

.stop-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stop-card.loading-place {
    border-left: 4px solid #1890ff;
    background: #f6ffed;
}

.stop-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.stop-number {
    background: #1890ff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.stop-name {
    font-weight: 600;
    color: #333;
    flex: 1;
    font-size: 16px;
}

.loading-badge {
    background: #1890ff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
}

.stop-details {
    margin-left: 34px;
}

.stop-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.stop-time span {
    font-size: 14px;
    color: #666;
}

.stop-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.bromatological-badge {
    background: #f6ffed;
    color: #52c41a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    display: inline-block;
}

.stop-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.arrival-btn, .departure-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.departure-btn {
    background: #52c41a;
}

.completed-text {
    color: #52c41a;
    font-size: 12px;
    font-weight: 500;
}

.no-stops {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Documentation Screens Styles */
.document-section {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.document-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.document-header h4 {
  margin: 0;
  color: #1890ff;
  font-size: 16px;
  font-weight: 600;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.document-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.date-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-section label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.date-input {
  padding: 12px;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  font-size: 16px;
  background: white;
}

.date-input:focus {
  outline: none;
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.photo-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-section label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.photo-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-input {
  display: none;
}

.upload-btn {
  padding: 12px 16px;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.upload-btn:hover {
  background: #40a9ff;
}

.upload-btn:active {
  background: #096dd9;
}

.current-photo {
  margin-top: 8px;
}

.doc-photo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #d9d9d9;
}

.vehicle-info, .driver-info {
  background: #f0f9ff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #1890ff;
}

.vehicle-info h3, .driver-info h3 {
  margin: 0 0 8px 0;
  color: #1890ff;
  font-size: 18px;
}

.vehicle-info p, .driver-info p {
  margin: 4px 0;
  color: #666;
  font-size: 14px;
}

.documents-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.save-section {
  position: sticky;
  bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.save-btn {
  width: 100%;
  padding: 16px;
  background: #52c41a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.save-btn:hover {
  background: #73d13d;
}

.save-btn:active {
  background: #389e0d;
}

.save-btn:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

/* Responsive adjustments for documentation screens */
@media (max-width: 480px) {
  .document-section {
    padding: 12px;
  }
  
  .document-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .status-badge {
    align-self: flex-end;
  }
  
  .doc-photo {
    max-width: 150px;
  }
}

/* Comment Modal Styles */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.comment-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.comment-modal-header {
    background: #1890ff;
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-comment-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-modal-body {
    padding: 20px;
}

.comment-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.comment-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    background: white;
}

.comment-select:focus {
    border-color: #1890ff;
    outline: none;
}

.custom-comment-container {
    margin-bottom: 15px;
}

.custom-comment {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.custom-comment:focus {
    border-color: #1890ff;
    outline: none;
}

.comment-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel-comment-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.confirm-comment-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.cancel-comment-btn:hover {
    background: #e6e6e6;
}

.confirm-comment-btn:hover {
    background: #40a9ff;
}

/* Delivery Modal Styles */
.delivery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.delivery-content {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: none;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.delivery-header {
    background: #52c41a;
    color: white;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delivery-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-delivery-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-body {
    padding: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #52c41a;
    outline: none;
}

.form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.cancel-delivery-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.submit-delivery-btn {
    background: #52c41a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.cancel-delivery-btn:hover {
    background: #e6e6e6;
}

.submit-delivery-btn:hover {
    background: #73d13d;
}

/* Arrival Comment Display */
.arrival-comment {
    background: #f0f8ff;
    border-left: 3px solid #1890ff;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #333;
    border-radius: 0 4px 4px 0;
}

/* Delivery Comment Display */
.delivery-comment {
    background: #f6ffed;
    border-left: 3px solid #52c41a;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #333;
    border-radius: 0 4px 4px 0;
}

/* Delivery Status Display */
.delivery-status {
    background: #fff7e6;
    border-left: 3px solid #fa8c16;
    padding: 8px 12px;
    margin: 8px 0;
    font-size: 13px;
    color: #333;
    border-radius: 0 4px 4px 0;
    font-weight: 500;
}

/* Photo Container Styles */
.photo-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.delete-photo-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff4d4f;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.delete-photo-btn:hover {
    background: #ff7875;
}

/* Action buttons container */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 8px;
    align-items: stretch;
}

.arrival-btn, .departure-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.departure-btn {
    background: #52c41a;
}

.arrival-btn-large {
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    flex: 2 !important;
    min-height: 50px !important;
}

.departure-btn-large {
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    flex: 2 !important;
    min-height: 50px !important;
}

.reset-btn-red {
    background: #ff4d4f !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    flex: 1 !important;
    min-height: 40px !important;
}

.reset-btn-red:hover {
    background: #ff7875 !important;
}

.reset-btn-red:active {
    background: #d9363e !important;
}

.completed-text {
    color: #52c41a;
    font-size: 12px;
    font-weight: 500;
}

.action-buttons:has(.arrival-btn-large) {
    flex-direction: column;
}

.action-buttons:has(.arrival-btn-large) .arrival-btn-large {
    order: 1;
    margin-bottom: 8px;
}

.action-buttons:has(.arrival-btn-large) .navigation-btn {
    order: 2;
    flex: 1;
}

.action-buttons:has(.departure-btn-large) {
    flex-direction: column;
}

.action-buttons:has(.departure-btn-large) .departure-btn-large {
    order: 1;
    margin-bottom: 8px;
}

.action-buttons:has(.departure-btn-large) .reset-btn-red {
    order: 2;
    margin-bottom: 4px;
}

.action-buttons:has(.departure-btn-large) .navigation-btn {
    order: 3;
    flex: 1;
}

/* Navigation button styles */
.navigation-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.arrival-btn:hover,
.departure-btn:hover {
    background: #40a9ff;
    transform: translateY(-1px);
}

.departure-btn {
    background: #52c41a;
}

.departure-btn:hover {
    background: #73d13d;
}

.completed-text {
    color: #52c41a;
    font-weight: 500;
}

/* Route Details Modal */
.route-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.route-details-content {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.route-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    flex-shrink: 0;
}

.route-details-header h3 {
    margin: 0;
    color: #1890ff;
    font-size: 18px;
}

.route-details-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.route-progress {
    margin-bottom: 20px;
    padding: 12px;
    background: #f0f8ff;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #1890ff;
    transition: width 0.3s ease;
}

.stops-list h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.stop-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.stop-card.pending {
    border-left: 4px solid #fa8c16;
}

.stop-card.in_progress {
    border: 3px solid #1890ff;
    background: linear-gradient(135deg, #e6f7ff, #bae7ff);
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    transform: scale(1.02);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(24, 144, 255, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
    }
}

.stop-card.completed {
    border-left: 4px solid #52c41a;
    background: #f6ffed;
}

.stop-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.stop-number {
    background: #1890ff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.stop-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.stop-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.stop-status.pending {
    background: #fff7e6;
    color: #fa8c16;
}

.stop-status.in_progress {
    background: #e6f7ff;
    color: #1890ff;
}

.stop-status.completed {
    background: #f6ffed;
    color: #52c41a;
}

.stop-details {
    margin-left: 32px;
    font-size: 12px;
    color: #666;
}

.stop-time {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.stop-address {
    margin-bottom: 4px;
}

.bromatological-badge {
    background: #e6fffb;
    color: #13c2c2;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    display: inline-block;
}

.stop-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.arrival-btn,
.departure-btn {
    background: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.arrival-btn:hover,
.departure-btn:hover {
    background: #40a9ff;
}

.completed-text {
    color: #52c41a;
    font-weight: 500;
    font-size: 12px;
}

/* Delivery Modal */
.delivery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.delivery-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.delivery-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    text-align: center;
}

.delivery-header h3 {
    margin: 0 0 8px 0;
    color: #1890ff;
    font-size: 18px;
}

.stop-name {
    color: #666;
    font-size: 14px;
}

.delivery-body {
    padding: 20px;
}

.delivery-body .form-group {
    margin-bottom: 16px;
}

.delivery-body label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.delivery-body input,
.delivery-body select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.delivery-body input:focus,
.delivery-body select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.delivery-body small {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

@media (max-width: 480px) {
    .routes-content,
    .route-details-content,
    .delivery-content {
        width: 95%;
        margin: 20px;
    }
    
    .routes-header,
    .routes-body,
    .route-details-header,
    .route-details-body,
    .delivery-header,
    .delivery-body {
        padding: 16px;
    }
    
    .stop-details {
        margin-left: 0;
        margin-top: 8px;
    }
    
    .stop-time {
        flex-direction: column;
        gap: 4px;
    }
}

/* ============================================
   CHECKLIST SCREEN STYLES
   ============================================ */

.checklist-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 1000;
    overflow-y: auto;
}

.checklist-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 100px;
}

.checklist-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #3498db;
}

.checklist-header h2 {
    font-size: 20px;
    color: #2c3e50;
    margin: 0;
}

.checklist-header .back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checklist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-section {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ecf0f1;
}

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

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

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.conductor-fields {
    display: flex;
    gap: 8px;
}

.conductor-fields input {
    flex: 1;
}

/* Switch Styles */
.switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch-label {
    font-size: 14px;
    color: #7f8c8d;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e74c3c;
    transition: 0.4s;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

.switch input:checked + .slider {
    background-color: #27ae60;
}

.switch input:checked + .slider:before {
    transform: translateX(24px);
}

.switch .slider.round {
    border-radius: 26px;
}

.switch .slider.round:before {
    border-radius: 50%;
}

.switch.small {
    width: 44px;
    height: 22px;
}

.switch.small .slider:before {
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
}

.switch.small input:checked + .slider:before {
    transform: translateX(20px);
}

/* Switch Grid */
.switch-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.switch-item span {
    font-size: 14px;
    color: #2c3e50;
}

/* Radio Groups */
.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.radio-group label:has(input:checked) {
    background: #d5f5e3;
    border: 1px solid #27ae60;
}

.radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
}

/* Slider Groups */
.slider-group {
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.slider-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.slider-value {
    display: inline-block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #27ae60;
}

/* Photo Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.photo-item {
    text-align: center;
}

.photo-item label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 6px;
}

.photo-preview {
    width: 100%;
    height: 100px;
    background: #ecf0f1;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
}

.photo-preview:hover {
    border-color: #3498db;
    background: #e8f4f8;
}

.photo-preview span {
    font-size: 14px;
    color: #7f8c8d;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview.has-image {
    border-style: solid;
    border-color: #27ae60;
}

.single-photo {
    margin-top: 12px;
}

.single-photo .photo-preview {
    height: 120px;
}

/* Form Actions */
.form-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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