:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --secondary-color: #9c27b0;
    --accent-color: #ff4081;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #666;
    --border-color: #e0e0e0;
    --sidebar-width: 280px;
    --right-sidebar-width: 320px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--dark-text);
    line-height: 1.6;
}

.matrimony-profile-edit-container {
    display: flex;
    width: 100%;
    margin: 20px auto;
    gap: 20px;
    padding: 0 15px;
}

/* Left Sidebar Styles */
.profile-edit-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 24px;
    margin: 0;
    line-height: 39px;
}

.sidebar-nav {
    padding: 10px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav-item:hover {
    background-color: rgba(233, 30, 99, 0.05);
    color: var(--primary-color);
}

.sidebar-nav-item.active {
    background-color: rgba(233, 30, 99, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar-nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-progress {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 65%;
    transition: width 0.5s ease;
}

/* Main Content Styles */
.profile-edit-main {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.profile-edit-header h1 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.profile-edit-header h1 i {
    margin-right: 10px;
}

.profile-edit-actions .btn {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: white;
    background: #673ab7;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.alert {
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.profile-edit-form {
    padding: 30px;
}

.profile-edit-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-edit-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.section-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-header p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

.section-content {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2) !important;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.photo-upload-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    font-size: 80px;
    color: #ccc;
}

.photo-upload-controls {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.photo-upload-notes {
    font-size: 13px;
    color: var(--light-text);
    text-align: center;
    max-width: 300px;
}

.profile-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Right Sidebar Styles */
.profile-edit-right-sidebar {
    width: var(--right-sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.widget-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #673ab7 100%);
    color: white;
    font-weight: 600;
}

.widget-content {
    padding: 20px;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #673ab7;
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}
.quick-action-btn:hover i {
    color: #fff;
}

.quick-action-btn i {
    color: var(--primary-color);
    font-size: 18px;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .matrimony-profile-edit-container {
        flex-direction: column;
    }
    
    .profile-edit-sidebar, 
    .profile-edit-right-sidebar {
        width: 100%;
        position: static;
    }
    
    .profile-edit-sidebar {
        order: -1;
    }
    
    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .sidebar-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-nav-item.active {
        border-left: none;
        border-bottom: 3px solid var(--primary-color);
    }
}

@media (max-width: 768px) {
    .profile-edit-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-edit-footer {
        flex-direction: column;
    }
}