/**
 * COMPREHENSIVE PLAN FEATURE MANAGEMENT - CSS
 * Styling untuk form management dengan 50+ fitur
 */

/* Modal Container yang lebih besar untuk banyak fitur */
.edit-plan-content-large {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Modal */
.edit-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e3f2fd;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
}

.edit-plan-close {
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s;
}

.edit-plan-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Form Container dengan scroll */
.edit-plan-form-comprehensive {
    overflow-y: auto;
    padding: 0;
    flex: 1;
}

/* Navigasi Tab */
.feature-tabs {
    display: flex;
    background: #fafafa;
    border-bottom: 2px solid #e0e0e0;
    padding: 0 16px;
    gap: 4px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tab-btn {
    padding: 14px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(25, 118, 210, 0.08);
    color: #1976d2;
}

.tab-btn.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
    background: white;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 32px;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

/* Form Rows */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-group small {
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

/* Checkbox untuk single item */
.checkbox-single {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label-large {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.checkbox-label-large:hover {
    background: #e3f2fd;
}

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

/* Feature Groups */
.feature-group {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
}

.feature-group h4 {
    margin: 0 0 16px 0;
    color: #444;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.checkbox-grid label:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.checkbox-grid label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1976d2;
}

.checkbox-grid label input[type="checkbox"]:checked+span {
    font-weight: 600;
    color: #1976d2;
}

.checkbox-grid label span {
    flex: 1;
    color: #555;
}

/* Footer dengan tombol */
.edit-plan-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 24px 32px;
    border-top: 2px solid #e0e0e0;
    background: #fafafa;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.btn-cancel {
    padding: 12px 32px;
    border: 2px solid #d32f2f;
    background: white;
    color: #d32f2f;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #d32f2f;
    color: white;
}

.btn-save {
    padding: 12px 32px;
    border: none;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

.btn-save:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .edit-plan-content-large {
        width: 95%;
        max-height: 95vh;
    }

    .feature-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

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

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .tab-content {
        padding: 20px;
    }

    .edit-plan-footer {
        flex-direction: column-reverse;
    }

    .btn-cancel,
    .btn-save {
        width: 100%;
    }
}