/* My Account Hero Section */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%); /* Blue theme */
    min-height: 350px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 86, 179, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: خبر relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.contact-icon-large {
    margin-bottom: 1.5rem;
}

.icon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue theme */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3); /* Blue theme */
    position: relative;
}

.icon-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #0056b3); /* Blue theme */
    z-index: -1;
    opacity: 0.3;
}

.icon-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.icon-inner i {
    font-size: 24px;
    color: #007bff; /* Blue theme */
}

.contact-details {
    text-align: center;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* My Account Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 2rem;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.contact-content {
    position: relative;
    z-index: 2;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #000000 !important;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #000000 !important;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
    font-weight: 600;
}

/* Account Dashboard */
.account-dashboard {
    margin-bottom: 3rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    opacity: 0;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.2);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card.danger {
    border-color: rgba(220, 53, 69, 0.1);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.1);
}

.dashboard-card.danger::before {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.dashboard-card.danger:hover {
    border-color: rgba(220, 53, 69, 0.2);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15);
}

.dashboard-card.logout {
    border-color: rgba(108, 117, 125, 0.1);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.1);
}

.dashboard-card.logout::before {
    background: linear-gradient(90deg, #6c757d, #495057);
}

.dashboard-card.logout:hover {
    border-color: rgba(108, 117, 125, 0.2);
    box-shadow: 0 20px 40px rgba(108, 117, 125, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon {
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.4);
}

.dashboard-card.danger .card-icon {
    background: linear-gradient(45deg, #dc3545, #c82333);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.dashboard-card.danger:hover .card-icon {
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
}

.dashboard-card.logout .card-icon {
    background: linear-gradient(45deg, #6c757d, #495057);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.dashboard-card.logout:hover .card-icon {
    box-shadow: 0 12px 30px rgba(108, 117, 125, 0.4);
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.card-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.card-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-content p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.stat-item i {
    font-size: 0.75rem;
}

.card-action {
    margin-top: auto;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-card.danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-card.danger:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-card.logout {
    background: linear-gradient(45deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-card.logout:hover {
    background: linear-gradient(45deg, #495057, #343a40);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-card i {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 0;
        height: auto;
        padding: 0;
        align-items: flex-start !important;
        overflow: visible !important;
        margin-top: -110px;
    }
    
    .contact-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .icon-ring {
        width: 70px;
        height: 70px;
    }
    
    .icon-inner {
        width: 50px;
        height: 50px;
    }
    
    .icon-inner i {
        font-size: 20px;
    }
    
    .breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .contact-container {
        padding: 1.5rem 0.75rem;
        margin-top: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .card-icon i {
        font-size: 20px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .btn-card {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        min-height: 0;
        height: auto;
        padding: 0;
        align-items: flex-start !important;
        overflow: visible !important;
        margin-top: -130px;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .contact-subtitle {
        font-size: 0.95rem;
    }
    
    .icon-ring {
        width: 60px;
        height: 60px;
    }
    
    .icon-inner {
        width: 40px;
        height: 40px;
    }
    
    .icon-inner i {
        font-size: 16px;
    }
    
    .contact-container {
        padding: 1rem 0.5rem;
        margin-top: 0;
    }
    
    .dashboard-grid {
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .dashboard-card {
        padding: 1.25rem;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }
    
    .card-icon i {
        font-size: 18px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
    
    .card-content p {
        font-size: 0.85rem;
    }
    
    .stat-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .btn-card {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .contact-hero {
        min-height: 0;
        height: auto;
        padding: 0;
        align-items: flex-start !important;
        overflow: visible !important;
        margin-top: -140px;
    }
    
    .contact-card {
        padding: 1.25rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-subtitle {
        font-size: 0.9rem;
    }
    
    .icon-ring {
        width: 50px;
        height: 50px;
    }
    
    .icon-inner {
        width: 35px;
        height: 35px;
    }
    
    .icon-inner i {
        font-size: 14px;
    }
    
    .contact-container {
        padding: 0.75rem 0.4rem;
        margin-top: 0;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .card-icon i {
        font-size: 16px;
    }
    
    .card-content h3 {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 0.8rem;
    }
    
    .btn-card {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Tablet devices - Move hero up */
@media (min-width: 768px) and (max-width: 1024px) {
    .contact-hero {
        margin-top: -60px !important;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Larger tablets */
@media (min-width: 1024px) and (max-width: 1366px) {
    .contact-hero {
        margin-top: -100px !important;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet landscape orientation */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    .contact-hero {
        margin-top: -60px !important;
    }
}

/* Desktop */
@media (min-width: 1367px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Header Search Overrides */
@media (max-width: 768px) {
    .mobile-header .mobile-search .input-group {
        align-items: stretch;
    }
    .mobile-header .mobile-search .form-control.mobile-search-input {
        height: 44px;
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }
    .mobile-header .mobile-search .search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 44px;
        padding: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .mobile-header .mobile-search .search-btn i {
        font-size: 1.2rem;
        color: #ffffff;
    }
}

@media (max-width: 480px) {
    .mobile-header .mobile-search .form-control.mobile-search-input {
        height: 38px;
        padding: 0.45rem 0.7rem !important;
        font-size: 0.9rem;
    }
    .mobile-header .mobile-search .search-btn {
        width: 42px;
        height: 38px;
    }
    .mobile-header .mobile-search .search-btn i {
        font-size: 1rem;
    }
}

/* Delete Account OTP Modal Styling */
#deleteAccountOTPModal .modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 50%, #bd2130 100%) !important;
    background-color: #dc3545 !important;
}

#deleteAccountOTPModal .btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

#deleteAccountOTPModal .btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130) !important;
    background-color: #c82333 !important;
    border-color: #c82333 !important;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}
