/* Header Styles */
.header {
    margin-bottom: 2rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #2ecc71;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #4a5568;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.home-link:hover {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.home-link i {
    font-size: 1.25rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2ecc71;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: #4a5568;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: #4a5568;
    font-weight: 500;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2ecc71;
}

.cart-count {
    background: #2ecc71;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    margin-left: 0.25rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.search-box button {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0;
}

.search-box button:hover {
    color: #2ecc71;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-action-btn {
    position: relative;
    color: #4a5568;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.header-action-btn:hover {
    color: #2ecc71;
}

.notification-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    min-width: 1.5rem;
    text-align: center;
}

.header-profile {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.profile-toggle:hover {
    background: rgba(46, 204, 113, 0.1);
}

.profile-toggle img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2ecc71;
}

.profile-name {
    font-weight: 500;
    color: #4a5568;
}

.profile-toggle i {
    color: #718096;
    font-size: 0.875rem;
}

.dropdown-menu {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e2e8f0;
}

/* Dark Mode Styles */
body.dark-mode .navbar {
    background: rgba(26, 32, 44, 0.95);
}

body.dark-mode .site-title {
    color: #2ecc71;
}

body.dark-mode .home-link {
    color: #e2e8f0;
}

body.dark-mode .home-link:hover {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.2);
}

body.dark-mode .navbar-brand span {
    color: #2ecc71;
}

body.dark-mode .nav-link,
body.dark-mode .navbar-toggler,
body.dark-mode .profile-name {
    color: #e2e8f0;
}

body.dark-mode .search-box input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .search-box input::placeholder {
    color: #718096;
}

body.dark-mode .header-action-btn {
    color: #e2e8f0;
}

body.dark-mode .dropdown-menu {
    background: #2d3748;
    border-color: #4a5568;
}

body.dark-mode .dropdown-item {
    color: #e2e8f0;
}

body.dark-mode .dropdown-divider {
    border-color: #4a5568;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .header-right {
        margin-top: 1rem;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .home-link span {
        display: none;
    }
    
    .home-link {
        padding: 0.5rem;
    }
    
    .home-link i {
        font-size: 1.5rem;
    }

    .navbar-brand span {
        display: none;
    }
}

/* Profile Container */
.profile-container {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
    background-color: #f8f9fa;
}

/* Authentication Section */
.auth-section, .profile-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.auth-section {
    display: block;
}

.profile-section {
    padding-top: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-heading {
    text-align: center;
    margin-bottom: 30px;
}

.heading-icon {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.text-gradient {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
}

.heading-divider .line {
    height: 1px;
    width: 50px;
    background: #ddd;
}

.heading-divider .dot {
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
    margin: 0 10px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.auth-tab {
    padding: 10px 30px;
    border: none;
    background: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #3498db;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
}

.auth-form {
    display: none;
    max-width: 400px;
    margin: 0 auto;
}

.auth-form.active {
    display: block;
}

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

.form-control {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    width: 100%;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52,152,219,0.25);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #95a5a6;
    cursor: pointer;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-auth:hover {
    background: #2980b9;
}

.error-message {
    display: none;
    color: #dc3545;
    background-color: #ffe6e6;
    border: 1px solid #ffcccc;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.error-message.success {
    color: #28a745;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Dark mode styles for error/success message */
body.dark-mode .error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

body.dark-mode .error-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
}

/* Profile Section */
.profile-header {
    position: relative;
    background: #fff;
    padding: 2rem;
}

.profile-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-avatar-container:hover .image-upload-overlay {
    opacity: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-upload-icon {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.image-upload-text {
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 0 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.profile-image-input {
    display: none;
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-progress.active {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

/* Upload Success Icon */
.upload-success-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #4CAF50;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.upload-success-icon.active {
    opacity: 1;
    animation: bounceIn 0.5s ease;
}

/* Upload Error */
.upload-error {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4444;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.upload-error.active {
    opacity: 1;
}

/* Animation */
@keyframes bounceIn {
    0% {
        transform: translateX(-50%) scale(0.3);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

/* Dark Mode */
body.dark-mode .profile-image {
    border-color: #2d3748;
}

body.dark-mode .upload-error {
    background: #742a2a;
}

.profile-main-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    padding: 1rem;
}

.profile-details-container {
    flex: 1;
    text-align: left;
}

.profile-main-info {
    margin-bottom: 1.5rem;
}

.profile-main-info h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.profile-badge.verified {
    background: #e6ffed;
    color: #2f855a;
}

.profile-badge i {
    margin-right: 0.3rem;
}

.profile-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-icon i {
    font-size: 1.2rem;
    color: #4CAF50;
}

.contact-info {
    flex: 1;
}

.contact-info label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.contact-info span {
    display: block;
    font-size: 1rem;
    color: #1e293b;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.profile-actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit-profile {
    background: #4CAF50;
    color: white;
}

.btn-edit-profile:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-change-password {
    background: #2196F3;
    color: white;
}

.btn-change-password:hover {
    background: #1e88e5;
    transform: translateY(-2px);
}

.btn-logout {
    background: #ff4444;
    color: white;
}

.btn-logout:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* Dark Mode Styles */
body.dark-mode .profile-main-info h2 {
    color: #e2e8f0;
}

body.dark-mode .contact-item {
    background: #2d3748;
}

body.dark-mode .contact-item:hover {
    background: #374151;
}

body.dark-mode .contact-icon {
    background: #1a202c;
}

body.dark-mode .contact-info label {
    color: #a0aec0;
}

body.dark-mode .contact-info span {
    color: #e2e8f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-main-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-details-container {
        width: 100%;
        text-align: center;
    }

    .profile-main-info h2 {
        justify-content: center;
    }

    .profile-contact-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .profile-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Orders List */
.orders-list {
    display: grid;
    gap: 1.5rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-id {
    font-weight: 600;
    color: #2d3748;
}

.order-date {
    color: #718096;
}

.order-items {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.order-item {
    display: flex;
    gap: 1rem;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details h4 {
    margin: 0 0 0.5rem;
    color: #2d3748;
}

.item-details p {
    margin: 0;
    color: #718096;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-weight: 600;
    color: #2d3748;
}

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.order-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.order-status.processing {
    background: #e0f2fe;
    color: #0284c7;
}

.order-status.shipped {
    background: #f0fdf4;
    color: #16a34a;
}

.order-status.delivered {
    background: #dcfce7;
    color: #15803d;
}

.btn-track-order {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    border: none;
    border-radius: 12px;
    background: #2ecc71;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-track-order:hover {
    background: #27ae60;
}

/* Addresses */
.saved-addresses {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.address-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.address-content h4 {
    margin: 0 0 0.5rem;
    color: #2d3748;
}

.address-content p {
    margin: 0;
    color: #718096;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #e0f2fe;
    color: #0284c7;
}

.btn-edit:hover {
    background: #bae6fd;
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
}

.btn-delete:hover {
    background: #fecaca;
}

.btn-add-address {
    width: 100%;
    padding: 0.75rem;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #718096;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-address:hover {
    border-color: #2ecc71;
    color: #2ecc71;
}

/* Settings */
.settings-section {
    display: grid;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.setting-info h4 {
    margin: 0 0 0.5rem;
    color: #2d3748;
}

.setting-info p {
    margin: 0;
    color: #718096;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
    z-index: 1000;
}

.notification.success {
    background: #dcfce7;
    color: #15803d;
}

.notification.error {
    background: #fee2e2;
    color: #ef4444;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Social Login Styles */
.social-login-section {
    margin: 20px 0;
    text-align: center;
}

.social-login-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-social:hover {
    background-color: #f5f5f5;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.btn-social span {
    flex: 1;
    text-align: center;
}

/* Dark mode styles */
body.dark-mode .social-login-text {
    color: #999;
}

body.dark-mode .btn-social {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .btn-social:hover {
    background: #3a4556;
}

/* Modal Base Styles */
.modal {
    display: none; /* Default state is hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

/* Modal Active State */
.modal.active {
    display: flex !important; /* Show only when active */
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 60px auto 20px;
    padding: 0;
    width: 80%;
    max-width: 320px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10000;
}

/* Change Password Modal Specific */
#changePasswordModal.active {
    align-items: center;
}

#changePasswordModal .modal-content {
    margin-top: 40px;
}

/* Animation */
@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .modal.active {
        padding: 10px;
    }
    
    .modal-content {
        margin: 50px auto 10px;
        width: 85%;
    }
}

/* Form Styles */
.styled-form {
    padding: 0.8rem;
}

.form-group {
    margin-bottom: 0.6rem;
}

.form-group label {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
    display: block;
    color: #666;
    font-weight: 500;
}

.form-control {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.password-input {
    position: relative;
}

.password-input .form-control {
    padding-right: 35px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.2s;
}

.toggle-password:hover {
    opacity: 1;
    color: #4CAF50;
}

.modal-actions {
    margin-top: 1rem;
    padding: 0 1rem 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(69, 160, 73, 0.2);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

/* Change Password Modal Specific Styles */
#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

#changePasswordModal .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

#changePasswordModal .toggle-password:hover {
    color: #3498db;
}

#changePasswordModal .btn-primary {
    background: #3498db;
}

#changePasswordModal .btn-primary:hover {
    background: #2980b9;
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.2);
}

/* Password Strength Indicator */
.password-strength {
    height: 3px;
    background: #f0f0f0;
    margin-top: 5px;
    border-radius: 2px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-weak {
    width: 33.33%;
    background: #ff4757;
}

.strength-medium {
    width: 66.66%;
    background: #ffa502;
}

.strength-strong {
    width: 100%;
    background: #2ed573;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 85%;
        margin: 1rem auto;
    }
    
    .modal-actions {
        padding: 0 0.6rem 0.6rem;
    }
    
    #changePasswordModal .modal-content {
        width: 90%;
    }
    
    #changePasswordModal .styled-form {
        padding: 1rem;
    }
    
    #changePasswordModal .modal-actions {
        padding: 0 1rem 1rem;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Change Password Modal Enhanced Styles */
#changePasswordModal .modal-content {
    max-width: 340px;
    background: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#changePasswordModal .modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
}

#changePasswordModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

#changePasswordModal .modal-header h3 {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#changePasswordModal .modal-header h3 i {
    font-size: 1.2rem;
    color: #ffd868;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

#changePasswordModal .styled-form {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #fff, #f8faff);
}

#changePasswordModal .form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

#changePasswordModal .form-group label {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

#changePasswordModal .form-group label i {
    color: #667eea;
    font-size: 1rem;
}

#changePasswordModal .form-control {
    height: 42px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #2d3748;
}

#changePasswordModal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

#changePasswordModal .password-input {
    position: relative;
}

#changePasswordModal .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 5px;
    font-size: 1rem;
    transition: all 0.2s;
}

#changePasswordModal .toggle-password:hover {
    color: #667eea;
}

#changePasswordModal .password-strength {
    height: 4px;
    background: #edf2f7;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

#changePasswordModal .strength-meter {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

#changePasswordModal .strength-weak {
    width: 33.33%;
    background: linear-gradient(to right, #ff6b6b, #ff8787);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

#changePasswordModal .strength-medium {
    width: 66.66%;
    background: linear-gradient(to right, #ffd868, #ffa502);
    box-shadow: 0 0 10px rgba(255, 216, 104, 0.3);
}

#changePasswordModal .strength-strong {
    width: 100%;
    background: linear-gradient(to right, #51cf66, #40c057);
    box-shadow: 0 0 10px rgba(81, 207, 102, 0.3);
}

#changePasswordModal .strength-label {
    font-size: 0.8rem;
    color: #718096;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

#changePasswordModal .strength-label i {
    font-size: 0.75rem;
}

#changePasswordModal .modal-actions {
    padding: 1rem 1.5rem;
    background: #f8faff;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    border-radius: 0 0 8px 8px;
}

#changePasswordModal .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

#changePasswordModal .btn i {
    font-size: 0.9rem;
}

#changePasswordModal .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

#changePasswordModal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#changePasswordModal .btn-secondary {
    background: #fff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

#changePasswordModal .btn-secondary:hover {
    background: #f8faff;
    border-color: #667eea;
    color: #667eea;
}

/* Password validation hints */
#changePasswordModal .password-hints {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background: #f8faff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

#changePasswordModal .hint-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#changePasswordModal .hint-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #718096;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

#changePasswordModal .hint-item i {
    font-size: 0.75rem;
    color: #a0aec0;
}

#changePasswordModal .hint-item.valid {
    color: #2f855a;
}

#changePasswordModal .hint-item.valid i {
    color: #48bb78;
}

/* Success animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon {
    animation: checkmark 0.3s ease-in-out forwards;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #changePasswordModal .modal-content {
        width: 92%;
        margin: 1rem auto;
    }

    #changePasswordModal .styled-form {
        padding: 1.2rem;
    }

    #changePasswordModal .modal-actions {
        padding: 1rem;
        flex-direction: column-reverse;
    }

    #changePasswordModal .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Profile Image Upload Styles */
.profile-image-upload {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-image-upload:hover .image-upload-overlay {
    opacity: 1;
}

.image-upload-icon {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

.image-upload-text {
    color: #fff;
    font-size: 12px;
    text-align: center;
}

.profile-image-input {
    display: none;
}

/* Upload Progress */
.upload-progress {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-progress.active {
    opacity: 1;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

/* Upload Success Animation */
@keyframes uploadSuccess {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.upload-success-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #4CAF50;
    font-size: 20px;
    opacity: 0;
}

.upload-success-icon.active {
    animation: uploadSuccess 0.5s ease forwards;
}

/* Error State */
.upload-error {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #dc3545;
    font-size: 12px;
    background: #ffe6e6;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-error.active {
    opacity: 1;
}

/* Dark Mode */
body.dark-mode .profile-image {
    border-color: #2d3748;
}

body.dark-mode .upload-progress {
    background: #4a5568;
}

body.dark-mode .upload-error {
    background: rgba(220, 53, 69, 0.1);
}

.default-address-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.default-address-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.address-header h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.address-header h3 i {
    color: #4CAF50;
}

.btn-edit-address {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 0.9rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-address:hover {
    color: #45a049;
    transform: translateY(-1px);
}

.address-content {
    color: #4a5568;
}

.address-text {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.address-details {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* Dark Mode Styles */
body.dark-mode .default-address-card {
    background: #2d3748;
}

body.dark-mode .address-header h3 {
    color: #e2e8f0;
}

body.dark-mode .address-content {
    color: #cbd5e0;
}

body.dark-mode .address-details {
    color: #a0aec0;
}

.profile-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Profile Orders Section */
.profile-orders {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}

.profile-orders .section-header {
    margin-bottom: 1.5rem;
}

.profile-orders h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.profile-orders .card {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.profile-orders .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.profile-orders .card-body {
    padding: 1rem;
}

.profile-orders .badge {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
}

.profile-orders .text-muted {
    color: #718096 !important;
}

.profile-orders .btn-outline-primary {
    border-color: #2ecc71;
    color: #2ecc71;
}

.profile-orders .btn-outline-primary:hover {
    background-color: #2ecc71;
    color: #fff;
}

/* Dark mode styles */
body.dark-mode .profile-orders {
    background: #2d3748;
}

body.dark-mode .profile-orders h3 {
    color: #e2e8f0;
}

body.dark-mode .profile-orders .card {
    background: #1a202c;
    border-color: #4a5568;
}

body.dark-mode .profile-orders .text-muted {
    color: #a0aec0 !important;
} 