/* ═══════════════════════════════════════════════════════════════
   🏪 STORE MANAGEMENT MENU STYLES
   ═══════════════════════════════════════════════════════════════ */

#management-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 99999;
}

.management-panel {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.management-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #3498db;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.management-header h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 20px;
    font-weight: bold;
}

.close-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.tab-navigation {
    background: #1a1a1a;
    display: flex;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #95a5a6;
    padding: 18px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.tab-content-wrapper {
    overflow-y: auto;
    flex: 1;
    padding: 30px;
    background: #0d0d0d;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 8px;
}

.section-header p {
    color: #95a5a6;
    font-size: 14px;
}

.pricing-sections {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 25px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.pricing-sections::-webkit-scrollbar {
    width: 8px;
}

.pricing-sections::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.pricing-sections::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 10px;
}

.pricing-sections::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

.pricing-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.pricing-category h3 {
    color: #3498db;
    font-size: 18px;
    margin-bottom: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.price-item label {
    display: block;
    color: #bdc3c7;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 12px;
    color: #3498db;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 10px 12px 10px 28px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(0, 0, 0, 0.6);
}

.input-group input::placeholder {
    color: #555;
}

.hours-section {
    max-width: 600px;
    margin: 0 auto;
}

.hours-input-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.time-input {
    flex: 1;
}

.time-input label {
    display: block;
    color: #bdc3c7;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.time-input select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-input select:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(0, 0, 0, 0.6);
}

.time-separator {
    color: #3498db;
    font-size: 20px;
    margin-top: 30px;
}

.hours-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.hours-info p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.5;
}

.always-open-option {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sell-section {
    max-width: 700px;
    margin: 0 auto;
}

.store-value-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.info-box label {
    display: block;
    color: #95a5a6;
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box .value {
    color: #3498db;
    font-size: 24px;
    font-weight: 700;
}

.sell-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sell-option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
}

.sell-option-card h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.sell-option-card p {
    color: #95a5a6;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.input-with-currency {
    position: relative;
    margin-bottom: 15px;
}

.input-with-currency .currency {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #3498db;
    font-weight: 600;
    font-size: 16px;
}

.input-with-currency input {
    width: 100%;
    padding: 12px 15px 12px 30px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
}

.input-with-currency input:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(0, 0, 0, 0.6);
}

.sellback-value {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.sellback-value label {
    display: block;
    color: #95a5a6;
    font-size: 12px;
    margin-bottom: 5px;
}

.sellback-value .value {
    color: #2ecc71;
    font-size: 20px;
    font-weight: 700;
}

.cancel-sale-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: rgba(149, 165, 166, 0.2);
    color: #95a5a6;
    border: 1px solid #95a5a6;
}

.btn-secondary:hover {
    background: rgba(149, 165, 166, 0.3);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.tab-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.tab-content-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.tab-content-wrapper::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 10px;
}

.tab-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

@media (max-width: 768px) {
    .management-panel {
        width: 95%;
        max-height: 95vh;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hours-input-group {
        flex-direction: column;
    }

    .time-separator {
        transform: rotate(90deg);
        margin: 10px 0;
    }

    .sell-options {
        grid-template-columns: 1fr;
    }

    .store-value-info {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
