/* My Account Page Styles */

.my-account-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.account-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.account-sidebar:hover {
    transform: translateY(-5px);
}

.sidebar-header {
    background: linear-gradient(45deg, #EC008C, #ff6b6b);
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 600;
}

.sidebar-header .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
}

.main-content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-header {
    background: linear-gradient(45deg, #EC008C, #ff6b6b);
    color: white;
    padding: 25px;
}

.content-header h4 {
    margin: 0;
    font-weight: 600;
}

.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #EC008C;
}

.form-section h4,
.form-section h5 {
    color: #EC008C;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(236, 0, 140, 0.1);
}

.form-section h4 i,
.form-section h5 i {
    margin-right: 8px;
    color: #4CAF50;
}

.modern-form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.modern-form-control:focus {
    border-color: #EC008C;
    box-shadow: 0 0 0 0.2rem rgba(236, 0, 140, 0.25);
    transform: translateY(-2px);
}

.modern-form-control:hover {
    border-color: #ddd;
}

.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #EC008C;
    font-weight: 600;
}

.save-button {
    background: linear-gradient(45deg, #EC008C, #ff6b6b);
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(236, 0, 140, 0.4);
}

.save-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(236, 0, 140, 0.6);
    background: linear-gradient(45deg, #d10077, #ff5252);
}

.reset-button {
    background: transparent;
    border: 2px solid #6c757d;
    padding: 15px 40px;
    border-radius: 25px;
    color: #6c757d;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.reset-button:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

.nav-pills .nav-link {
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.nav-pills .nav-link:hover {
    background: rgba(236, 0, 140, 0.1);
    color: #EC008C;
    padding-left: 25px;
}

.nav-pills .nav-link.active {
    background: linear-gradient(45deg, #EC008C, #ff6b6b);
    color: white;
    box-shadow: 0 5px 15px rgba(236, 0, 140, 0.4);
}

.success-message {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.error-message {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.breadcrumb-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 15px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 18px;
    color: #EC008C;
}

.breadcrumb-modern a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-modern a:hover {
    color: #EC008C;
}

.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.field-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    transition: color 0.3s ease;
}

.modern-form-control:focus ~ .field-icon {
    color: #EC008C;
}

@media (max-width: 768px) {
    .my-account-container {
        padding: 10px 0;
    }
    
    .account-sidebar {
        margin-bottom: 20px;
    }
    
    .modern-form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .save-button,
    .reset-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .content-header {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 576px) {
    .breadcrumb-modern {
        padding: 10px 15px;
    }
    
    .sidebar-header {
        padding: 20px 15px;
    }
    
    .floating-label label {
        font-size: 14px;
    }
    
    .nav-pills .nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Checkbox and radio button styles */
.form-check-input {
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #EC008C;
    border-color: #EC008C;
}

.form-check-input:focus {
    border-color: #EC008C;
    box-shadow: 0 0 0 0.2rem rgba(236, 0, 140, 0.25);
}

.form-check-label {
    margin-left: 8px;
    cursor: pointer;
}
