/* Refresh Button */
.refresh-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 31, 63, 0.9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 40;
}

.refresh-button:hover {
    background-color: #0074D9;
}

.refresh-button svg {
    width: 1rem;
    height: 1rem;
}

.refresh-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.refresh-button.loading svg {
    animation: spin 1s linear infinite;
}

/* Error Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 90%;
    width: 400px;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.modal-icon {
    margin: 0 auto 1rem;
    width: 3rem;
    height: 3rem;
    background-color: #FEE2E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #DC2626;
}

.modal-title {
    color: #1F2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-message {
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.modal-button {
    background-color: #001F3F;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #0074D9;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .refresh-button {
        top: auto;
        bottom: 5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

.actions {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 50;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.action-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.action-button:active {
    background-color: #f3f4f6;
}

.action-button i {
    font-size: 1rem;
}

.action-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.action-button.loading i {
    animation: spin 1s linear infinite;
} 