/* Font Setup */
/* @import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css'); */

body {
    /* font-family: 'Vazirmatn', sans-serif; */
    background-color: #f8f9fa;
    padding-bottom: 100px; /* For fixed footer */
}

/* Page Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 9px solid;
    border-color: #dbdcef;
    border-right-color: #474bff;
    animation: spin 1s infinite linear;
}
@keyframes spin {
    to { transform: rotate(1turn); }
}

/* v-cloak to prevent FOUC */
[v-cloak] {
    display: none;
}

#app {
    max-width: 800px;
}

/* Toast Notifications */
.toast-container {
    z-index: 1090;
}

/* Stepper Styles - Unchanged */
.stepper-wrapper { display: flex; justify-content: space-between; margin-bottom: 20px; position: relative; }
.stepper-item { position: relative; display: flex; flex-direction: column; align-items: center; flex: 1; }
.stepper-item::before { position: absolute; content: ""; border-bottom: 2px solid #ccc; width: 100%; top: 20px; right: -50%; z-index: 2; }
/*
.stepper-item::after { position: absolute; content: ""; border-bottom: 2px solid #0d6efd; width: 0; top: 20px; right: -50%; z-index: 3; transition: width 0.5s ease-in-out; }
*/
.stepper-item .step-counter { position: relative; z-index: 5; display: flex; justify-content: center; align-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ccc; margin-bottom: 6px; color: white; font-weight: bold; transition: background-color 0.5s ease; }
.stepper-item .step-name { font-size: 0.85rem; color: #6c757d; text-align: center; transition: color 0.5s ease; }
.stepper-item.active .step-counter { background-color: #0d6efd; }
.stepper-item.active .step-name { color: #0d6efd; font-weight: bold; }
.stepper-item.completed .step-counter { background-color: #198754; }
.stepper-item.completed .step-name { color: #198754; }
/*
.stepper-item.completed::after { width: 100%; }
*/
.stepper-item:first-child::before, .stepper-item:first-child::after { display: none; }

/* List Group (Activity & School) */
.list-group-item {
    cursor: pointer;
}
.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Fixed Footer - Unchanged */
.fixed-footer { position: fixed; bottom: 0; bottom: env(keyboard-inset-height, 0); left: 0; width: 100%; background-color: #fff; border-top: 1px solid #dee2e6; padding: 1rem; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000; }

/* School List */
.school-list { max-height: 250px; overflow-y: auto; }
/* 🎯 Drop Zone - Modern Version */
.drop-zone {
    border: 2px dashed #6c757d;
    border-radius: 12px;
    background: linear-gradient(145deg, #fdfdfd, #f1f3f6);
    padding: 2.5rem;
    text-align: center;
    color: #6c757d;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    position: relative;
}
.drop-zone.drag-over {
    background-color: #e3f2fd;
    border-color: #0d6efd;
    color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* 🖼 File Card View */
.file-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}
.file-card:hover { transform: translateY(-3px); }

.file-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.file-info {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    text-align: center;
    color: #495057;
    word-break: break-word;
}

/* 🧭 Remove Button */
.file-card .remove-file-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    line-height: 1;
}

/* ⏳ Status Overlay + Animation */
.file-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.file-card[data-status="compressing"] .file-status-overlay {
    opacity: 1;
    animation: pulse 1s infinite;
}
.file-card[data-status="uploading"] .file-status-overlay {
    opacity: 1;
}
.file-card[data-status="error"] .file-status-overlay {
    opacity: 1;
    background: rgba(220, 53, 69, 0.8);
}
.file-card[data-status="complete"] .file-status-overlay {
    opacity: 1;
    background: rgba(25, 135, 84, 0.8);
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* 📊 Upload Progress Bar */
.file-progress {
    width: 0%;
    height: 4px;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}

/* Custom styles for PWA Install Toast Animation */
#pwa-install-toast.showing {
    animation: slide-up 0.5s ease-out forwards;
}

#pwa-install-toast.hiding {
    animation: slide-down 0.5s ease-in forwards;
}

@keyframes slide-up {
    from {
        transform: translate(-50%, 150%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slide-down {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 150%);
        opacity: 0;
    }
}
