/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button, a, svg, i {
  outline: none;
  border: none;
  -webkit-tap-highlight-color: transparent; /* mobile tap glow remove */
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 100vw;
    min-height: 100vh;
    background: #ffffff;
}

/* Header Styles */
.profile-header {
    background: rgb(255, 255, 255);
    padding: 15px 20px;
    /* border-bottom: 1px solid #000000; */
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn{
    background: none;
    border: none;
    font-size: 20px;
    color: #282727de;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

 .help-btn {
    background: none;
    border: none;
    font-size: 20px;
    /* color: #4d4d4dde; */
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.back-btn:hover {
    background: #f0f0f0;
}

.profile-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Main Content */
.profile-content {
    padding: 0;
}

/* User Info Section */
.user-info {
    background: rgb(255, 255, 255);
    padding: 0px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
   padding-bottom: 20px;
     border-bottom: 1px solid #25222238;
 
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f9d81be0, #FFA500);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    color: #ffffff;
}

.user-details {
    flex: 1;
}

.user-details h2 {
    font-size: 18px;
    font-weight: 750;
    color: #333;
    margin-bottom: -3px;
}

.phone-number {
    font-size: 12px;
    color: #666;
}

.manage-btn {
    background: none;
    border: none;
    color: #8d3be0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.manage-btn:hover {
    background: #f0f0f0;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
   margin: 13px 0px;
    background: #ffffff;
    border-bottom: 0.1px solid rgba(179, 178, 178, 0.432);
}

.action-card {
    background:  #f0f3f8d3;
    border-radius: 15px;
    padding: 17px;
    /* display: flex; */
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    /* background: #f8f9fa; */
    /* border-radius: 12px; */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    font-size: 20px;
    color: #333;
    /* border: 1px solid #e9ecef; */
}

.action-text h3 {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

/* Preferences Section */
.preferences-section, .security-section {
    background: #ffffff;
    margin-bottom: 1px;
    padding-bottom: 2px;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    padding: 20px 20px 15px;
    margin: 0;
    /* background: #f8f9fa; */
}
.abt{
    padding: 20px 0px;
    border-top: 1px solid gray;
    border-bottom: 1px solid gray;
}
/* Preference Items */
.preference-item {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    /* border-bottom: 1px solid #f5f5f5; */
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    background: #ffffff;
}

.preference-item:hover {
    background: #f8f9fa;
}

.preference-item:last-child {
    border-bottom: none;
}

.preference-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
    color: #666;
}

.preference-content {
    flex: 1;
}

.preference-content span {
    font-size: 16px;
    color: #333;
    font-weight: 400;
}

.preference-arrow {
    color: #ccc;
    font-size: 14px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + label {
    background-color: #4CAF50;
}

.toggle-switch input:checked + label:before {
    transform: translateX(22px);
}

/* Logout Item */
.logout-item {
    border-bottom: none;
}

.logout-icon {
    color: #dc3545;
}

.logout-item .preference-content span {
    color: #dc3545;
}

/* Responsive Design */

/* Small Mobile Phones (320px - 375px) */
@media (max-width: 375px) {
    .profile-header {
        padding: 8px 15px;
    }
    
    .profile-header h1 {
        font-size: 18px;
    }
    
    .user-info {
        padding: 1px 15px;
        gap: 12px;
         padding-bottom: 20px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .user-details h2 {
        font-size: 18px;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .quick-actions {
        
        padding: 0px 15px;
        padding-bottom: 20px;
        gap: 12px;
    }
    
    .action-card {
        padding: 7px 12px;
        gap: 12px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .action-text h3 {
        font-size: 10px;
    }
    
    .section-title {
        padding: 15px 15px 10px;
        font-size: 12px;
    }
    
    .preference-item {
       padding: 7px 22px;
    }
    
    .preference-content span {
        font-size: 15px;
    }
}

/* Medium Mobile Phones (376px - 414px) */
@media (min-width: 376px) and (max-width: 414px) {
    .user-avatar {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .action-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .action-text h3 {
        font-size: 15px;
    }
}

/* Large Mobile Phones (415px+) */
@media (min-width: 415px) {
    .container {
        max-width: 414px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .profile-header {
        padding: 10px 20px;
    }
    
    .user-info {
        padding: 15px 20px;
    }
    
    .section-title {
        padding: 15px 20px 10px;
    }
    
    .preference-item {
        padding: 12px 20px;
    }
}

/* Portrait Tablet (768px+) - Keep mobile design */
@media (min-width: 768px) {
    .container {
        max-width: 414px;
        margin: 0 auto;
        box-shadow: 0 0 30px rgba(0,0,0,0.15);
    }
}

/* Hover effects for larger screens */
@media (hover: hover) {
    .action-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .preference-item:hover {
        background: #f8f9fa;
    }
    
    .back-btn:hover, .help-btn:hover, .manage-btn:hover {
        background: #f0f0f0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .action-card:hover {
        transform: none;
    }
    
    .action-card, .preference-item, .back-btn, .help-btn, .manage-btn {
        transition: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .action-card {
        border-color: #333;
    }
    
    .preference-item {
        border-bottom-color: #333;
    }
    
    .profile-header {
        border-bottom-color: #333;
    }
}

/* Light theme enforced - Dark mode disabled */
/* Dark mode styles removed to maintain consistent white theme */