/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown .account {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-dropdown .account:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
}

.user-dropdown .dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown .dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.user-dropdown .dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--theme-color, #007bff);
}

/* Authentication Forms Styles */
.login-form .register-benefits ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.login-form .register-benefits li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.login-form .register-benefits li i {
    color: #28a745;
    margin-right: 10px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.benefit-icon {
    margin-right: 15px;
    color: var(--theme-color, #007bff);
    font-size: 24px;
}

.benefit-content h4 {
    margin-bottom: 8px;
    color: #333;
}

.benefit-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Account Details Form */
.account-details-form .form-group {
    margin-bottom: 20px;
}

.account-details-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.account-details-form .text-muted {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.account-details-form h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

/* Order Status Badges */
.badge-processing {
    background-color: #ffc107;
    color: #212529;
}

.badge-completed {
    background-color: #28a745;
    color: #fff;
}

.badge-pending {
    background-color: #6c757d;
    color: #fff;
}

.badge-cancelled {
    background-color: #dc3545;
    color: #fff;
}

.badge-shipped {
    background-color: #17a2b8;
    color: #fff;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
}

.no-orders p {
    margin-bottom: 20px;
    color: #666;
}

/* RTL Support */
[dir="rtl"] .user-dropdown .dropdown-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .benefit-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .benefit-icon {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .login-form .register-benefits li i {
    margin-right: 0;
    margin-left: 10px;
}

/* Form Validation Error Styles */
.has-error input,
.has-error select,
.has-error textarea {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger ul {
    margin-bottom: 0;
}

.alert-danger li {
    margin-bottom: 0.25rem;
}

.alert-danger li:last-child {
    margin-bottom: 0;
}

/* Address Cards Styles */
.address-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
}

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

.address-card.default-address {
    border-color: var(--theme-color, #007bff);
    background: rgba(0, 123, 255, 0.05);
}

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

.address-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.default-badge {
    background: var(--theme-color, #007bff);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.address-card address {
    margin-bottom: 15px;
    font-style: normal;
    line-height: 1.6;
    color: #555;
}

.address-card address strong {
    color: #333;
    font-weight: 600;
}

.address-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.address-actions .btn-small {
    padding: 6px 12px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.address-actions .btn-small:hover {
    transform: translateY(-1px);
}

.address-actions .btn-danger {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.address-actions .btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.no-addresses {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.no-addresses p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}
