/**
 * Modern Admin Panel - Tabbed Stand Management Modal
 * Clean, professional, organized layout
 */

/* Modal Genel */
.admin-modal-modern {
    border-radius: 12px;
    overflow: hidden;
}

/* Header - Temiz ve Modern */
.admin-header-clean {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.header-icon-modern {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.header-icon-modern i {
    font-size: 1.2rem;
}

.header-content {
    display: flex;
    align-items: center;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    display: block;
    margin-top: 0.25rem;
}

/* Tab Navigation */
.admin-tabs {
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    padding: 0 1.5rem;
}

.admin-tabs .nav-link {
    border: none;
    color: #6c757d;
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.admin-tabs .nav-link:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.admin-tabs .nav-link.active {
    color: #0d6efd;
    background: white;
    border-bottom-color: #0d6efd;
}

.admin-tabs .nav-link i {
    opacity: 0.7;
}

.admin-tabs .nav-link.active i {
    opacity: 1;
}

/* Tab Content Area */
.admin-tab-content {
    min-height: 400px;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-tab-inner {
    padding: 2rem 1.5rem;
}

/* Custom Scrollbar */
.admin-tab-content::-webkit-scrollbar {
    width: 10px;
}

.admin-tab-content::-webkit-scrollbar-track {
    background: #f1f3f5;
}

.admin-tab-content::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 5px;
}

.admin-tab-content::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Form Elements - Modern & Clean */
.admin-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.admin-input,
.admin-select,
.admin-textarea {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
    outline: none;
}

.admin-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-text {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Color Palette - Modern Grid */
.color-palette-modern {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
}

.color-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 3px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.color-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-btn:hover {
    transform: scale(1.15) translateY(-2px);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.color-btn:hover::before {
    opacity: 1;
}

.color-btn.active {
    border-color: var(--admin-accent, #ed1c24);
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.25), 0 4px 16px rgba(237, 28, 36, 0.3);
    transform: scale(1.1);
}

.color-btn.active::before {
    opacity: 1;
}

/* Feature Checkboxes */
.feature-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-checkboxes .form-check {
    margin: 0;
}

.feature-checkboxes .form-check-label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

/* Alert Box */
.alert {
    border-left: 4px solid #0dcaf0;
    background: #e7f7ff;
    border-radius: 8px;
}

/* Footer */
.admin-footer-clean {
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.admin-footer-clean .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Input Group Improvements */
.input-group-text {
    background: #e9ecef;
    border: 2px solid #e9ecef;
    font-weight: 600;
    color: #495057;
}

.input-group .admin-input {
    border-left: none;
}

.input-group .btn-outline-secondary {
    border: 2px solid #e9ecef;
    border-left: none;
}

.input-group .btn-outline-secondary:hover {
    background: #e9ecef;
}

/* Quick Size Buttons */
.btn-group .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-tabs {
        padding: 0 0.5rem;
    }
    
    .admin-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .admin-tab-inner {
        padding: 1.5rem 1rem;
    }
    
    .color-palette-modern {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 576px) {
    .admin-tabs .nav-link {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .admin-tabs .nav-link i {
        display: none;
    }
    
    .color-palette-modern {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .feature-checkboxes {
        flex-direction: column;
        gap: 0.5rem;
    }
}
