/* Website Builder Admin Styles */
/* Sprint 9.3: Dynamic Website Generator */

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.website-builder-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 300;
    color: #1d1d1f;
    margin: 0 0 10px 0;
}

.header-section p {
    color: #86868b;
    font-size: 1.2rem;
    margin: 0;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 100;
}

.back-btn:hover {
    background: white;
    transform: translateY(-2px);
}

/* Quick Actions */
.quick-actions-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Settings Card */
.settings-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.settings-card h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1d1d1f;
}

.settings-card h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px 0;
    color: #1d1d1f;
    border-bottom: 2px solid #f2f2f7;
    padding-bottom: 10px;
}

.settings-card > p {
    color: #86868b;
    margin-bottom: 30px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e5ea;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #86868b;
    font-size: 0.9rem;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-group input[type="color"] {
    width: 60px;
    height: 45px;
    border: 2px solid #e5e5ea;
    border-radius: 8px;
    cursor: pointer;
}

.color-picker-group input[type="text"] {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.btn-success {
    background: linear-gradient(135deg, #30d158 0%, #28a745 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.3);
}

.btn-secondary {
    background: #f2f2f7;
    color: #1d1d1f;
}

.btn-secondary:hover {
    background: #e5e5ea;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Featured Products Grid */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    border: 2px solid #e5e5ea;
    transition: all 0.2s;
}

.product-item.featured {
    border-color: #ffc107;
    background: #fff9e6;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #1d1d1f;
}

.product-item-info p {
    margin: 0;
    color: #007bff;
    font-weight: 600;
}

.product-item-actions {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-edit-product {
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-edit-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Status Card */
.status-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.status-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.status-label {
    display: block;
    font-size: 0.9rem;
    color: #86868b;
    margin-bottom: 5px;
}

.status-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1d1d1f;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #86868b;
}

/* Responsive */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }

    .quick-actions-card {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}
