.profile-content {
    margin-top: 80px;
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background-color: #f8fafc;
}

.profile-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.profile-header {
    text-align: center;
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #1e3a8a;
}

.profile-header h2 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.profile-header p {
    color: #6b7280;
    font-size: 0.9rem;
}

.profile-nav {
    padding: 0;
}

.nav-item {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #f0f9ff;
    color: #1e3a8a;
    border-left: 3px solid #1e3a8a;
}

.nav-item.logout {
    color: #dc2626;
}

.nav-item.logout:hover {
    background-color: #fef2f2;
    color: #dc2626;
    border-left-color: #dc2626;
}

.profile-main {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.profile-section {
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-section h2 {
    color: #374151;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 0.5rem;
}

.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group.flex-2 {
    grid-column: span 2;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

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

.addresses-list {
    display: grid;
    gap: 1rem;
}

.address-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: border-color 0.3s;
}

.address-card:hover {
    border-color: #1e3a8a;
}

.address-card.default {
    border-color: #1e3a8a;
    background-color: #f0f9ff;
}

.address-label {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.default-badge {
    background: #1e3a8a;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.address-info {
    color: #374151;
    line-height: 1.5;
}

.address-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background: #2563eb;
}

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

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

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.order-card:hover {
    border-color: #1e3a8a;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.order-number {
    font-weight: 600;
    color: #1e3a8a;
}

.order-date {
    color: #6b7280;
    font-size: 0.9rem;
}

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

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-shipped {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-items {
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.order-item-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-item-price {
    font-weight: 600;
    color: #1e3a8a;
}

.order-total {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
}

.security-info {
    max-width: 600px;
}

.security-info p {
    margin-bottom: 1rem;
    color: #6b7280;
    line-height: 1.6;
}

.danger-zone {
    margin-top: 3rem;
    padding: 2rem;
    border: 2px solid #fecaca;
    border-radius: 8px;
    background-color: #fef2f2;
}

.danger-zone h3 {
    color: #dc2626;
    margin-bottom: 1rem;
}

.danger-zone p {
    color: #991b1b;
    margin-bottom: 1rem;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* Complete Profile Styles */
.complete-profile-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.complete-profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    max-width: 800px;
    width: 100%;
}

.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-section .logo {
    height: 60px;
    margin-bottom: 1rem;
}

.logo-section h1 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.logo-section p {
    color: #6b7280;
}

.complete-form {
    max-width: none;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h2 {
    color: #374151;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-sidebar {
        position: static;
    }
    
    .profile-nav {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .nav-item {
        border-bottom: none;
        border-right: 1px solid #f3f4f6;
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .address-actions {
        position: static;
        margin-top: 1rem;
        justify-content: flex-start;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .complete-profile-card {
        padding: 2rem 1rem;
    }
    .status-pending_payment {
        background: #fef3c7;
        color: #92400e;
    }
}