/* Legacy styles - will be gradually migrated to modern architecture */

/* Custom styles */
.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* Cart icon */
.cart-count {
    position: relative;
    top: -10px;
    right: -10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-size: 0.7em;
}

/* Product cards */
.product-card {
    height: 100%;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Category cards */
.category-card {
    height: 100%;
}

.category-card .card-img-top {
    height: 150px;
    object-fit: cover;
}

/* Custom button styles */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Form styles */
.form-group {
    margin-bottom: 1rem;
}

/* Authentication forms */
.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
}

.auth-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    text-align: center;
    padding: 1.5rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-floating > .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-floating > label {
    color: #6c757d;
}

.btn-auth {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 500;
    transition: transform 0.2s ease-in-out;
}

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

.btn-secondary-auth {
    background: #6c757d;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    transition: background-color 0.2s ease-in-out;
}

.btn-secondary-auth:hover {
    background: #5a6268;
    color: white;
}

/* OTP delivery method selection */
.delivery-method-group {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.delivery-method-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.delivery-method-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.delivery-method-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.delivery-method-btn i {
    font-size: 1.2em;
    margin-bottom: 5px;
    display: block;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    height: 4px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.password-strength-weak {
    background: #dc3545;
    width: 25%;
}

.password-strength-fair {
    background: #ffc107;
    width: 50%;
}

.password-strength-good {
    background: #fd7e14;
    width: 75%;
}

.password-strength-strong {
    background: #28a745;
    width: 100%;
}

/* Verification status */
.verification-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.verification-status.verified {
    background: #d4edda;
    color: #155724;
}

.verification-status.unverified {
    background: #f8d7da;
    color: #721c24;
}

/* Profile page styles */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    object-fit: cover;
}

.profile-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.profile-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Session management */
.session-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease-in-out;
}

.session-item:hover {
    border-color: #667eea;
}

.session-current {
    border-color: #28a745;
    background: #f8fff9;
}

.session-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-details {
    flex: 1;
}

.session-actions {
    display: flex;
    gap: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-card .card-body {
        padding: 1.5rem;
    }
    
    .delivery-method-group {
        flex-direction: column;
    }
    
    .session-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .session-actions {
        width: 100%;
        justify-content: flex-end;
    }
}