body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #111827;
    color: #f3f4f6;
    margin: 0;
    padding: 20px;
    direction: rtl;
}

.container { max-width: 1000px; margin: 0 auto; text-align: center; }

h1 { color: #38bdf8; margin-bottom: 5px; margin-top: 10px; }
p.subtitle { color: #9ca3af; margin-bottom: 30px; }

/* Status Bar */
#status {
    background: #1f2937;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #374151;
    font-weight: bold;
    color: #fbbf24;
}
.ready { color: #34d399 !important; }

/* Upload Area */
.drop-zone {
    border: 3px dashed #374151;
    border-radius: 20px;
    padding: 40px;
    transition: 0.3s;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    margin-bottom: 20px;
}
.drop-zone:hover { border-color: #38bdf8; background: rgba(56,189,248,0.05); }
.drop-zone.disabled { opacity: 0.5; pointer-events: none; }

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px; /* Space above footer */
}

.card {
    background: #1f2937;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #374151;
    position: relative;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    aspect-ratio: 0.8; 
    object-fit: cover;
}

.card-name {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons */
.btn-main {
    background: #38bdf8;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    display: none; 
    margin: 20px auto;
    transition: 0.2s;
}
.btn-main:hover { background: #0ea5e9; transform: scale(1.05); }

/* Progress Bar */
.progress-container {
    width: 100%;
    background-color: #374151;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
}
.progress-bar {
    width: 0%;
    height: 10px;
    background-color: #34d399;
    border-radius: 10px;
    transition: width 0.3s;
}

/* --- FOOTER STYLES --- */
.footer-container {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #374151; /* Line separator */
    text-align: center;
}
.logo-link {
    display: inline-block;
    transition: transform 0.2s;
}
.logo-link:hover {
    transform: scale(1.05);
}
.logo-img {
    max-width: 100%;
    width: 180px;  /* Smaller size for footer */
    height: auto;
    display: block;
    margin: 0 auto;
}