* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 🎯 Əsas Arxa Fon */
body {
    background-color: #1a1a1a; /* Bura istədiyin rəng kodunu yaz (məsələn, #000000 tam qara üçün) */
    color: #e0e0e0;
    padding-bottom: 100px;
}

/* 🎯 Header həmişə sabit qalır və itmir */
header {
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 70px;
    border-bottom: 1px solid #2d2d2d;
}

.header-panel {
    max-width: 800px; 
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#normalHeader h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    display: flex;         
    align-items: center;   
    justify-content: center; 
    gap: 10px;             
}

/* 🎯 Yeni Seçim Paneli dizaynı (Başlıq ilə məhsullar arasında) */
#selectionHeader {
    background-color: #1e293b;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px auto 15px auto;
    max-width: 800px;
    width: 100%;
    display: none; /* İlk başda gizli saxlanılır */
    align-items: center;
    justify-content: space-between;
    animation: slideUp 0.2s ease-out;
}

/* Sol tərəf (Say və İmtina) */
.selection-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.icon-btn {
    background: none;
    border: none;
    color: #ef4444; /* Çarpaz (X) düyməsi qırmızı tonda */
    font-size: 20px;
    cursor: pointer;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sağ tərəf (Düymələr) */
.selection-actions {
    display: flex;
    gap: 8px;
}

/* Hamısını seç düyməsi */
.action-btn-outline {
    background: transparent;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.2s;
}

.action-btn-outline:hover {
    background-color: #3b82f6;
    color: #ffffff;
}

/* Sil düyməsi */
.action-btn-danger {
    background-color: #dc2626;
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s;
}

.action-btn-danger:hover {
    background-color: #b91c1c;
}

.main-container {
    max-width: 800px; 
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    position: relative; 
}

.search-box {
    margin: 15px 0;
}

.search-box input {
    width: 100%;
    padding: 12px 16px;
    background-color: #1a1a1a;
    border: 2px solid #2d2d2d;
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: #3b82f6;
    background-color: #242424;
}

.tab-container {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background-color: #242424;
    color: #a0a0a0;            
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background-color: #2d2d2d;
    color: #ffffff;
}

.tab-btn.active {
    background-color: #007bff; 
    color: #ffffff; 
}

.tab-btn:focus,
.tab-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.title-container {
    width: 100% !important;
    max-width: 800px !important;
    margin: 20px auto 10px auto !important;
    display: block !important;
    text-align: center !important;
    clear: both !important;
}

#listTitle {
    display: inline-block !important;
    text-align: center !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    margin: 0 auto !important;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 10px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #2d2d2d;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.led-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.led-grid.zakaz-active-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 100%;
}

.led-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border: 1px solid #2d2d2d;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.led-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    border-color: #4b5563;
}

.led-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
}

.led-card p {
    font-size: 14px;
    color: #a0a0a0;
    margin-bottom: 6px;
}

.led-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 10px;
    background-color: #000000;
    border: 1px solid #2d2d2d;
}

.box-badge {
    background-color: #2d2d2d;
    color: #e0e0e0;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 4px;
}

.price-badge {
    background-color: #1b3a24;
    color: #6ee7b7;
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 4px;
}

.led-card.zakaz-style {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    height: auto !important;
    width: 100%;
}

.zakaz-count-badge {
    background-color: #dc2626;
    color: white;
    padding: 6px 14px;
    font-weight: bold;
    border-radius: 20px;
    font-size: 14px;
}

.selected-item {
    border: 2px solid #dc2626 !important;
    background-color: #2d1616 !important;
}

.fab-btn {
    position: fixed;
    bottom: 30px;
    left: calc(50% + 400px + 20px); 
    width: 60px;
    height: 60px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, left 0.1s, transform 0.2s;
}

.fab-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

@media (max-width: 960px) {
    .fab-btn {
        left: auto;
        right: 20px; 
    }
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 15px;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #2d2d2d;
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    animation: slideUp 0.2s ease-out;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #a0a0a0;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #242424;
    border: 1px solid #2d2d2d;
    color: #ffffff;
    border-radius: 6px;
    font-size: 15px;
}

.form-group input:focus {
    border-color: #3b82f6;
    outline: none;
}

.choice-box, .count-box {
    text-align: center;
    max-width: 350px;
}

.choice-box h3, .count-box h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.menu-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}

.blue-btn { background-color: #2563eb; }
.blue-btn:hover { background-color: #1d4ed8; }
.green-btn { background-color: #16a34a; }
.green-btn:hover { background-color: #15803d; }

.close-text-btn {
    background: none; border: none; color: #a0a0a0; font-size: 14px; cursor: pointer; margin-top: 5px;
}
.close-text-btn:hover { color: #ffffff; }

.list-select-box {
    max-width: 500px;
}

.modal-search {
    width: 100%; 
    padding: 10px; 
    background-color: #242424;
    border: 1px solid #2d2d2d; 
    color: #ffffff;
    border-radius: 6px; 
    margin: 10px 0;
}

.modal-search:focus {
    border-color: #3b82f6;
    outline: none;
}

.modal-scroll-list {
    max-height: 300px; 
    overflow-y: auto; 
    border: 1px solid #2d2d2d; 
    background-color: #1a1a1a;
    border-radius: 6px;
}

.preview-box {
    max-width: 500px;
    text-align: center;
}

.preview-img-container {
    width: 100%;
    height: 250px;
    background-color: #000000;
    border-radius: 8px;
    margin: 12px 0;
    overflow: hidden;
    border: 1px solid #2d2d2d;
}

.preview-img-container img {
    width: 100%; height: 100%; object-fit: contain;
}

.preview-info {
    display: flex; justify-content: center; gap: 20px; margin: 15px 0; font-size: 16px;
    color: #e0e0e0;
}

.edit-btn {
    background-color: #d97706 !important; color: #ffffff !important;
}
.edit-btn:hover {
    background-color: #b45309 !important;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.modal-actions.horizontal {
    flex-direction: row;
}

.modal-actions.horizontal .action-btn {
    flex: 1;
}

.action-btn {
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.action-btn.success { background-color: #16a34a; color: white; }
.action-btn.success:hover { background-color: #15803d; }
.action-btn.danger { background-color: #dc2626; color: white; }
.action-btn.danger:hover { background-color: #b91c1c; }
.action-btn.cancel { background-color: #4b5563; color: white; }
.action-btn.cancel:hover { background-color: #374151; }

.file-label {
    display: block; 
    text-align: center; 
    background-color: #242424; 
    color: #e0e0e0;
    padding: 10px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: bold; 
    border: 1px dashed #4b5563;
}
.file-label:hover {
    background-color: #2d2d2d;
    border-color: #3b82f6;
}

#fileSelectedName {
    display: block; font-size: 12px; color: #a0a0a0; margin-top: 5px; text-align: center;
}

.modal-alert {
    padding: 10px; border-radius: 6px; font-size: 14px; margin-bottom: 12px; text-align: center;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.full-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300; 
    animation: fadeIn 0.2s ease-in-out;
}

.full-image-content {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.05);
    animation: zoomIn 0.2s ease-out;
}

.full-image-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    user-select: none;
}

.full-image-close:hover {
    color: #bbb;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-scroll-list div strong {
    color: #ffffff !important;
}

.modal-scroll-list div div {
    color: #b0b3b8 !important;
}

.modal-scroll-list > div:hover {
    background-color: #2d2d2d !important;
}

@media (max-width: 600px) {
    .led-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; 
    }

    .led-card {
        padding: 10px !important; 
        border-radius: 8px !important;
    }

    .led-card h4 {
        font-size: 15px !important; 
        margin-bottom: 4px !important;
    }

    .led-card p {
        font-size: 12px !important; 
        margin-bottom: 4px !important;
    }

    .led-card img {
        height: 100px !important; 
        margin-top: 6px !important;
    }

    .box-badge, .price-badge {
        font-size: 11px !important;
        padding: 2px 5px !important;
    }
}

#btnSendWhatsApp:hover {
    background-color: #25d366 !important;
    color: #ffffff !important;
    border-color: #25d366 !important;
}

#btnSendWhatsApp:hover svg {
    fill: #ffffff !important;
}

/* Siyahı boş olanda çıxan mesajın dizaynı */
.empty-list-message {
    text-align: center;
    color: #888888;
    padding: 30px 10px;
    font-size: 16px;
    font-weight: 500;
    grid-column: 1 / -1; /* Anbar tor şəbəkəsində (grid) tam mərkəzə alması üçün */
    width: 100%;
    margin: 0 auto;
    transition: all 0.3s ease;
}