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

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

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

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-btn:hover {
    background: linear-gradient(135deg, #2980b9, #2471a3);
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

/* Specific icon button styles */
.logout-icon {
    background: rgba(231, 76, 60, 0.8);
    border-color: rgba(231, 76, 60, 0.9);
}

.logout-icon:hover {
    background: rgba(192, 57, 43, 0.9);
    border-color: rgba(192, 57, 43, 1);
}

.install-icon {
    background: rgba(52, 152, 219, 0.8);
    border-color: rgba(52, 152, 219, 0.9);
}

.install-icon:hover {
    background: rgba(41, 128, 185, 0.9);
    border-color: rgba(41, 128, 185, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-content h1 {
    font-size: 2.5rem;
    margin: 0;
    flex: 1;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Icon buttons */
.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
    backdrop-filter: blur(5px);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.icon-btn span {
    font-size: 16px;
    line-height: 1;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.controls input,
.controls select,
.controls button {
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    min-width: 200px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.controls input:focus,
.controls select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.edit-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    font-weight: bold;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #229954, #27ae60) !important;
}

.save-btn {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    font-weight: bold;
}

.save-btn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c) !important;
}

.cancel-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    font-weight: bold;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

#scheduleContainer {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px;
    min-height: 500px;
}

.loading {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-top: 50px;
}

.position-section {
    margin-bottom: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.position-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.add-row-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    color: white !important;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-row-btn:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.delete-column {
    width: 100px;
    text-align: center;
}

.delete-cell {
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

.delete-row-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: white !important;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-row-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.schedule-table tr:hover {
    background-color: #f8f9fa;
}

.time-slot {
    font-weight: bold;
    color: #e74c3c;
    min-width: 100px;
}

.officer-name {
    color: #2980b9;
    font-weight: 500;
}

.day-column {
    min-width: 120px;
}

.no-assignment {
    color: #999;
    font-style: italic;
    text-align: center;
}

.editable-cell {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.editable-cell:hover {
    background-color: #f0f8ff !important;
}

.editable-shift-name {
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.editable-shift-name:hover {
    background-color: #f0f8ff !important;
}

.editing {
    background-color: #e3f2fd !important;
}

.edit-input {
    width: 100%;
    padding: 5px;
    border: 2px solid #2196f3;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 5px;
}

.edit-input:focus {
    outline: none;
    border-color: #1976d2;
}

.edit-controls {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.edit-save,
.edit-cancel {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    flex: 1;
}

.edit-save {
    background: #4caf50;
    color: white;
}

.edit-cancel {
    background: #f44336;
    color: white;
}

.edit-mode-active .schedule-table td:not(.no-assignment) {
    border: 1px dashed #ddd;
}

.edit-mode-active .editable-cell::after {
    content: "✏️";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 12px;
    opacity: 0.6;
}

.edit-mode-active .editable-shift-name::after {
    content: "✏️";
    position: absolute;
    top: 2px;
    right: 5px;
    font-size: 12px;
    opacity: 0.6;
}











.no-results {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 50px 0;
}

/* Vessel Schedule Styling */
.vessel-schedule {
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vessel-schedule .position-header {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.vessel-schedule .schedule-table {
    background: white;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.vessel-schedule .schedule-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 2px solid #3498db;
}

.vessel-schedule .editable-cell {
    background: #fff;
    border: 1px solid #e9ecef;
    padding: 15px 8px;
    text-align: center;
    font-weight: 500;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.vessel-schedule .editable-cell:hover {
    background: #f0f8ff;
    border-color: #3498db;
}

.vessel-schedule .time-slot {
    background: #ecf0f1;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding: 15px 8px;
    border: 1px solid #bdc3c7;
}

.vessel-schedule .vessel-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.vessel-schedule .vessel-time {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
    border-top: 1px solid #e0e0e0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

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

    .controls input,
    .controls select,
    .controls button {
        min-width: 100%;
        width: 100%;
        margin: 0;
    }

    header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }

    /* Responsive header for mobile */
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 15px;
    }

    .header-content h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    .header-actions {
        justify-content: center;
    }

    /* Make tables horizontally scrollable */
    .position-section {
        margin-bottom: 25px;
    }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .schedule-table {
        font-size: 12px;
        width: 100%;
        min-width: 700px; /* Ensure table has enough space */
        margin: 0;
        border-collapse: collapse;
        table-layout: auto;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 6px;
        min-width: 90px;
        font-size: 13px;
        border: 1px solid #ddd;
        text-align: center;
        vertical-align: middle;
    }

    .schedule-table th:first-child,
    .schedule-table td:first-child {
        min-width: 120px;
        text-align: left;
        font-weight: bold;
    }

    /* Position headers */
    .position-header {
        font-size: 1.2rem;
        padding: 10px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .add-row-btn {
        font-size: 12px;
        padding: 6px 10px;
        align-self: center;
    }
    
    .delete-row-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .delete-column {
        width: 70px;
    }

    /* Make  officers grid more mobile-friendly */

    
    .-officer-content {
        width: 100%;
    }
    
    .-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .add--btn {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .delete--btn {
        font-size: 10px;
        padding: 6px 8px;
        margin-left: 0;
        align-self: flex-end;
    }

    /* Edit controls for mobile */
    .edit-controls {
        flex-direction: column;
        gap: 8px;
        margin-top: 8px;
    }

    .edit-controls button {
        padding: 10px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly */
    }

    .edit-input {
        padding: 10px;
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px;
        border: 2px solid #ddd;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    /* Login form mobile adjustments */
    .login-form {
        padding: 30px 20px;
        margin: 10px;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
    }

    .login-form h2 {
        font-size: 1.5rem;
    }

    /* Touch-friendly buttons */
    .controls button {
        min-height: 44px;
        font-size: 14px;
        padding: 12px 16px;
    }

    /* Improve editable cells for touch */
    .editable-cell {
        min-height: 40px;
        padding: 8px !important;
    }

    .editable- {
        min-height: 40px;
        padding: 8px;
        display: block;
        width: 100%;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    header {
        padding: 15px 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .schedule-table {
        font-size: 11px;
        min-width: 600px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 6px 4px;
        min-width: 80px;
        font-size: 13px;
    }

    .schedule-table th:first-child,
    .schedule-table td:first-child {
        min-width: 100px;
    }

    .position-header {
        font-size: 1rem;
        padding: 8px;
    }

    .-officer {
        padding: 10px;
        font-size: 12px;
    }

    .login-form {
        padding: 20px 15px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .schedule-table {
        min-width: 900px;
        font-size: 13px;
    }

    .schedule-table th,
    .schedule-table td {
        min-width: 100px;
        padding: 8px;
    }
}

/* General mobile improvements */
@media (max-width: 768px) {
    /* Add scroll indicators */
    .table-wrapper::after {
        content: "← Swipe to view more →";
        display: block;
        text-align: center;
        font-size: 12px;
        color: #666;
        padding: 5px;
        background: #f9f9f9;
        border-top: 1px solid #eee;
    }

    /* Improve table readability */
    .schedule-table th {
        background: #2c3e50;
        color: white;
    }

    /* Better focus states for accessibility */
    .editable-cell:focus,
    .editable-:focus {
        outline: 3px solid #3498db;
        outline-offset: 2px;
    }

    /* Improve  officers mobile layout */
    .-info {
        margin-top: 20px;
    }

    .-info h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .-info p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

/* PWA Specific Styles - now using icon button style */

.update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
}

.update-content {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.update-content.auto-reload {
    background: #27ae60;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

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

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

/* Date header styles */
.day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.schedule-table th .day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.day-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.day-date {
    font-size: 11px;
    font-weight: 400;
    color: #666;
    background: #e9ecef;
    padding: 1px 4px;
    border-radius: 2px;
    white-space: nowrap;
}

.day-header.today .day-name {
    color: #e74c3c;
    font-weight: 700;
}

.day-header.today .day-date {
    background: #e74c3c;
    color: white;
    font-weight: 600;
}

/* Vessel assignment styles */
.-assignment {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 4px;
}

.-label {
    font-size: 9px;
    font-weight: 500;
    color: #666;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.-input {
    width: 100%;
    max-width: 70px;
    padding: 2px 4px;
    font-size: 11px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    background: white;
    font-family: inherit;
}

.-input:focus {
    outline: none;
    border-color: #3498db;
    background: #f8f9fa;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.day-header.today .-input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.7);
}

.day-header.today .-input:focus {
    background: white;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.-name {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    min-height: 16px;
    display: flex;
    align-items: center;
    text-align: center;
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 2px;
    border: 1px solid #e9ecef;
    max-width: 70px;
    width: 100%;
}

.day-header.today .-name {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.day-header.today .-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure table headers support the flex layout */
.schedule-table th.day-column {
    vertical-align: middle;
    text-align: center;
    padding: 8px 4px;
}

/* Week info header styles */
.week-info {
    font-size: 16px;
    font-weight: 400;
    color: #7f8c8d;
    margin-top: 8px;
    text-align: center;
}

header h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.refresh-dates-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    padding: 4px;
    border-radius: 3px;
    transition: background 0.2s ease;
    color: #7f8c8d;
}

.refresh-dates-btn:hover {
    background: rgba(127, 140, 141, 0.1);
}

/* Next Week Button */
.next-week-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s ease;
}

.next-week-btn:hover {
    background: #2980b9;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #34495e;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.close-modal {
    color: #bdc3c7;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ecf0f1;
}

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

.modal-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.modal-footer .save-btn {
    background: #27ae60;
    color: white;
}

.modal-footer .save-btn:hover {
    background: #219a52;
}

.modal-footer .cancel-btn {
    background: #95a5a6;
    color: white;
}

.modal-footer .cancel-btn:hover {
    background: #7f8c8d;
}

/* Next Week Table Styles */
.next-week-table {
    width: 100%;
    font-size: 13px;
}

.next-week-cell {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.next-week-cell:hover {
    background-color: #f8f9fa;
}

.next-week-cell.editing {
    background-color: #fff3cd;
    padding: 4px;
}

.next-week-cell .edit-input {
    width: 100%;
    margin-bottom: 4px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
}

.next-week-cell .edit-controls {
    display: flex;
    gap: 4px;
}

.next-week-cell .edit-controls button {
    flex: 1;
    padding: 4px 8px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.next-week-cell .edit-save {
    background-color: #27ae60;
    color: white;
}

.next-week-cell .edit-save:hover {
    background-color: #219a52;
}

.next-week-cell .edit-cancel {
    background-color: #95a5a6;
    color: white;
}

.next-week-cell .edit-cancel:hover {
    background-color: #7f8c8d;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 10px;
    }
    
    .next-week-table {
        font-size: 11px;
    }
    
    .next-week-table th,
    .next-week-table td {
        padding: 6px 4px;
        min-width: 70px;
    }
}

.update-content span {
    flex: 1;
    font-size: 14px;
}

.update-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.update-btn:hover {
    background: #2980b9;
}

.dismiss-btn {
    background: none;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* PWA Mode Adjustments */
.pwa-mode {
    /* Add any specific styles for when app is running as PWA */
}

.pwa-mode header {
    /* Adjust header for PWA mode */
    padding-top: 20px; /* Account for status bar */
}

/* Mobile PWA adjustments */
@media (max-width: 768px) {
    .update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }


    .pwa-mode .login-container {
        padding-top: 40px; /* Extra space for mobile status bar */
    }
}

/* Splash screen styles (for PWA) */
@media (display-mode: standalone) {
    body {
        user-select: none; /* Prevent text selection in standalone mode */
    }

    /* Keep install button visible even when installed */
    .install-icon {
        display: inline-flex !important;
    }
}
