/* ======================================================= */
/* Profile.css - Compact Version (No Scroll) */
/* ======================================================= */

/* CSS Variables - Same as Customerdashboard */
:root {
    --primary-color: #004d40;
    --secondary-color: #17422f;
    --accent-color: #66bb6a;
    --highlight-color: #72F7BD;
    --text-light: #fff;
    --text-dark: #333;
    --bg-light: #f0f0f0;
    --border-light: #ccc;
    --header-height: 65px;
    --profile-primary: #004d40;
    --profile-secondary: #17422f;
    --profile-accent: #66bb6a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    padding-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto; /* Allow body scroll if needed, but profile box should fit */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ======================================================= */
/* HEADER STYLES - Same as Customerdashboard */
/* ======================================================= */

/* Shopping Cart Badge Styles */
.cart-link {
    position: relative;
    display: inline-block;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    animation: bounce 0.5s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    80% {
        transform: translateY(-2px);
    }
}

.cart-badge.hidden {
    display: none;
}

.cart-page-link {
    transition: transform 0.2s ease;
}

.cart-page-link:hover {
    transform: scale(1.1);
}

/* Diamond Icon Styling - WHITE COLOR */
.diamond-link {
    position: relative;
    transition: color 0.3s, transform 0.3s;
}

.diamond-link:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Diamond icon is now white */
.diamond-link .fa-diamond {
    color: var(--text-light);
}

.diamond-link:hover .fa-diamond {
    animation: sparkle 0.6s ease-in-out;
    color: var(--accent-color);
}

@keyframes sparkle {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(1); }
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: var(--primary-color);
    color: var(--text-light);
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    color: var(--text-light); 
    font-weight: 700; 
}

.logo-circle { 
    width: 45px; 
    height: 45px; 
    background-color: var(--primary-color); 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
}

.logo-circle img { 
    max-width: 80%; 
    height: auto; 
    border-radius: 50%; 
}

.logo-text { 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.logo-main { 
    font-size: 24px; 
    line-height: 1; 
    margin-bottom: -4px; 
}

.logo-sub { 
    font-size: 16px; 
    line-height: 1; 
}

nav { 
    display: flex; 
    flex-grow: 1; 
    justify-content: flex-end; 
    align-items: center; 
    padding: 0; 
    margin: 0 40px 0 0; 
    position: relative; 
    z-index: 1000; 
}

nav ul { 
    list-style: none; 
    display: flex; 
    margin: 0; 
    padding: 0; 
}

nav ul li { 
    margin: 0 15px; 
    font-size: 14px; 
    font-weight: 500; 
}

nav a:hover { 
    text-decoration: underline; 
}

/* ACTIVE LINK STYLING (For Profile page) */
nav ul li a.active-link {
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.search-bar { 
    display: flex; 
    align-items: center; 
    border: 1px solid var(--border-light); 
    border-radius: 5px; 
    overflow: hidden; 
    background-color: var(--text-light); 
    margin: 0 20px; 
}

.search-bar input { 
    border: none; 
    padding: 8px 10px; 
    outline: none; 
    width: 200px; 
    font-size: 14px; 
    color: var(--text-dark); 
}

.search-bar button { 
    background-color: var(--bg-light); 
    border: none; 
    padding: 8px 10px; 
    cursor: pointer; 
    color: var(--text-dark); 
}

.search-bar button:hover { 
    background-color: #ddd; 
}

.icon-links { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
    font-size: 18px; 
    color: var(--text-light); 
    position: relative;
}

.icon-links a { 
    transition: color 0.3s; 
}

.icon-links a:hover { 
    color: var(--accent-color); 
}

/* ======================================================= */
/* PROFILE CONTENT STYLES - COMPACT VERSION */
/* ======================================================= */

.profile-content {
    flex: 1;
    padding: 1rem 0.5rem; /* Reduced padding */
    background: linear-gradient(135deg, #fafafa 0%, #e8f5f3 50%, #fafafa 100%);
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 60px);
    overflow: visible; /* Ensure no scroll inside profile */
}

.container {
    max-width: 700px; /* Slightly smaller max-width */
    margin: 0 auto;
    width: 100%;
    height: auto;
}

/* Profile Card - More Compact */
.profile-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid rgba(0, 77, 64, 0.2);
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    max-height: 85vh; /* Limit height to viewport */
}

/* Header Gradient - Smaller */
.header-gradient {
    position: relative;
    height: 4rem; /* Reduced from 5rem */
    background:whitesmoke;
}

.header-pattern {
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0iZ3JpZCIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIj48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLW9wYWNpdHk9IjAuMSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI2dyaWQpIi8+PC9zdmc+');
    opacity: 0.3;
}

/* Avatar Section - More Compact */
.avatar-section {
    position: relative;
    padding: 0 1rem 0.5rem; /* Reduced padding */
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; /* Reduced gap */
    margin-top: -2rem; /* Adjusted for smaller header */
}

.avatar-container {
    position: relative;
}

.avatar-ring {
    width: 4rem; /* Smaller avatar */
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
    padding: 2px;
    box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.1);
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--profile-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: bold;
    color: white;
}

.profile-info {
    flex: 1;
    text-align: center;
}

.profile-name {
    font-size: 1.3rem; /* Smaller name */
    font-weight: 1000;
    margin-bottom: 0.2rem;
    color:darkblack;
   
   

}

.profile-subtitle {
    color: hsl(180, 5%, 45%);
    font-size: 0.8rem; /* Smaller subtitle */
    font-weight: 200;
}

/* Content Section - More Compact */
.content-section {
    padding: 1rem; /* Reduced padding */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Reduced gap */
   
}
#contact-info-heading {
    text-align: center;
    font-size: 1.3rem;
    
}

.section-title {
    font-size: 0.9rem; /* Smaller section titles */
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--profile-primary);
}

/* Info Cards - More Compact */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Reduced gap */
}

.info-card {
    /* Stack icon above text and center content so Email/Phone sit centered in their boxes */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Reduced gap */
    padding: 0.65rem; /* Slightly increased padding for visual balance */
    border-radius: 0.5rem;
    background: rgba(0, 77, 64, 0.05);
    transition: transform 0.22s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.22s ease, background-color 0.18s;
    width: 100%;
    text-align: center;
    /* subtle base elevation */
    box-shadow: 0 4px 10px rgba(16,24,32,0.06);
}

.info-card:hover,
.info-card:focus-within {
    /* Dark green hover to match header */
    background: rgba(0, 77, 64, 0.14);
    transform: translateY(-6px);
    /* shadow tinted with header green for cohesive look */
    box-shadow: 0 18px 40px rgba(0,77,64,0.18), 0 6px 18px rgba(0,77,64,0.09);
}

/* Tint label/value on hover for stronger emphasis */
.info-card:hover .info-label,
.info-card:hover .info-value,
.info-card:focus-within .info-label,
.info-card:focus-within .info-value {
    color: var(--primary-color);
}

.info-icon {
    width: 1.75rem; /* Smaller icons */
    height: 1.75rem;
    border-radius: 0.4rem;
    background: rgba(0, 77, 64, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--profile-primary);
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 0.75rem; /* Smaller labels */
    color: hsl(180, 5%, 45%);
    margin-bottom: 0.1rem;
    
    
}

.info-value {
    font-weight: 500;
    word-break: break-word;
    font-size: 0.8rem; /* Smaller values */
    line-height: 1.2;
}

/* Stats Section - More Compact */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem; /* Reduced gap */
    
}

.stat-card {
    padding: 0.75rem; /* Reduced padding */
    border-radius: 0.5rem;
    border: 1px solid;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px; /* Smaller cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card.total-orders {
    background: linear-gradient(135deg, rgba(0, 77, 64, 0.1), rgba(0, 77, 64, 0.05));
    border-color: rgba(0, 77, 64, 0.2);
}

.stat-card.total-orders:hover {
    border-color: rgba(0, 77, 64, 0.4);
}

.stat-card.cancelled-orders {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    border-color: rgba(255, 0, 0, 0.2);
}

.stat-card.cancelled-orders:hover {
    border-color: rgba(255, 0, 0, 0.4);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced gap */
    margin-bottom: 0.3rem;
  
}
#order-stats-heading {
    text-align: center;
    font-size: 20px;
   
}

.stat-icon {
    width: 1.5rem; /* Smaller icons */
    height: 1.5rem;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-orders .stat-icon {
    background: rgba(0, 77, 64, 0.2);
    color: var(--profile-primary);
}

.cancelled-orders .stat-icon {
    background: rgba(255, 0, 0, 0.2);
    color: hsl(0, 75%, 55%);
}

.stat-label {
    font-size: 0.75rem; /* Smaller labels */
    color: hsl(180, 5%, 45%);
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem; /* Slightly smaller values */
    font-weight: bold;
    text-align: center;
    margin-top: 0.1rem;
}

/* Actions Section - More Compact */
.actions-section {
    padding: 0.75rem 1rem; /* Reduced padding */
    background: rgba(0, 77, 64, 0.05);
    border-top: 1px solid rgba(0, 77, 64, 0.1);
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Reduced gap */
}

/* Buttons - Slightly Smaller */
.btn {
    flex: 1;
    height: 2.25rem; /* Slightly smaller buttons */
    padding: 0 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.85rem; /* Smaller font */
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--profile-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--profile-secondary);
}

.btn-secondary {
    background: rgba(0, 77, 64, 0.1);
    color: var(--profile-primary);
}

.btn-secondary:hover {
    background: rgba(0, 77, 64, 0.2);
}

.btn-destructive {
    background: hsl(0, 75%, 55%);
    color: white;
}

.btn-destructive:hover {
    background: hsl(0, 75%, 50%);
}

.btn:active {
    transform: scale(0.98);
}

/* Desktop layout for buttons */
@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
        gap: 0.6rem;
    }
}

/* Desktop layout adjustments */
@media (min-width: 768px) {
    .avatar-wrapper {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.75rem;
    }
    
    .profile-info {
        text-align: left;
        margin-bottom: 0.25rem;
    }
    
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 0.6rem;
    }
    
    /* Email - Row 1, Column 1 */
    .info-card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Phone - Row 1, Column 2 */
    .info-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Address - Row 2, full width */
    .info-card:nth-child(3) {
        grid-column: 1 / span 2;
        grid-row: 2;
    }
}

/* Desktop layout - 3 columns in one row for wider screens */
@media (min-width: 1024px) {
    .info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0.75rem;
    }
    
    /* All cards in the same row */
    .info-card {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        min-height: 80px; /* Smaller min-height */
        justify-content: flex-start;
        padding: 0.75rem;
    }
    
    /* Reset grid positions for 3-column layout */
    .info-card:nth-child(1),
    .info-card:nth-child(2),
    .info-card:nth-child(3) {
        grid-column: auto;
        grid-row: 1;
    }
    
    .info-icon {
        margin: 0 auto;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .info-content {
        text-align: center;
    }
    
    .info-label {
        font-size: 0.75rem;
    }
    
    .info-value {
        font-size: 0.8rem;
    }
}

/* ======================================================= */
/* FOOTER STYLES - Same as Customerdashboard */
/* ======================================================= */

footer { 
    width: 100%; 
    background-color: var(--secondary-color); 
    color: var(--text-light);
    margin: 0;
    padding: 0;
    margin-top: 2rem;
}

.footer-main-content { 
    display: flex; 
    justify-content: space-between; 
    padding: 40px 20px 20px 20px; 
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.footer-col { 
    flex: 1; 
    padding: 0 15px; 
    min-width: 200px; 
    box-sizing: border-box;
    margin-bottom: 20px;
}

.footer-col h3 { 
    font-size: 18px; 
    border-bottom: 1px solid var(--accent-color); 
    padding-bottom: 8px; 
    margin-bottom: 20px; 
    font-weight: 700; 
    color: var(--text-light); 
}

.footer-info { 
    max-width: 300px; 
}

.footer-info .logo-container { 
    margin-bottom: 20px; 
}

.footer-info .logo-container .logo-main { 
    font-size: 20px; 
}

.footer-info .logo-container .logo-sub { 
    font-size: 14px; 
}

.footer-info p { 
    font-size: 14px; 
    line-height: 1.6; 
    margin-top: 20px; 
    color: #ccc; 
}

.footer-links ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-links ul li { 
    margin-bottom: 8px; 
}

.footer-links a { 
    font-size: 14px; 
    color: #e0e0e0; 
    transition: color 0.3s; 
}

.footer-links a:hover { 
    color: var(--accent-color); 
}

.footer-contact p { 
    font-size: 14px; 
    line-height: 1.8; 
    margin-bottom: 10px; 
    color: #ccc; 
}

.footer-contact i { 
    color: var(--accent-color); 
    margin-right: 10px; 
    width: 15px; 
    text-align: center; 
}

.footer-social { 
    text-align: left; 
}

.social-icons { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-start; 
}

.social-icons a { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    background-color: var(--primary-color); 
    color: var(--text-light); 
    font-size: 16px; 
    transition: background-color 0.3s; 
}

.social-icons a:hover { 
    background-color: var(--accent-color); 
}

.footer-bottom-bar { 
    width: 100%; 
    background-color: var(--primary-color); 
    padding: 12px 20px; 
    text-align: center; 
    font-size: 12px; 
    margin: 0;
    box-sizing: border-box;
}

/* ======================================================= */
/* RESPONSIVE DESIGN */
/* ======================================================= */

@media (max-width: 1024px) {
    .footer-main-content {
        gap: 20px;
    }
    
    .footer-col {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 900px) {
    .footer-col {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
        height: auto;
        position: static;
    }
    
    body {
        padding-top: 0;
    }
    
    nav {
        margin: 10px 0;
        justify-content: center;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        margin: 0;
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .icon-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .profile-content {
        padding: 0.5rem 0.25rem;
        min-height: calc(100vh - 60px);
    }
    
    .avatar-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .footer-main-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px 20px 20px;
    }
    
    .footer-col {
        padding: 15px 0;
        min-width: auto;
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
    
    .footer-info .logo-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: 0.25rem 0.125rem;
    }
    
    .avatar-ring {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .avatar-initials {
        font-size: 1rem;
    }
    
    .profile-name {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 0.75rem;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
       
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .btn {
        height: 2rem;
        font-size: 0.8rem;
    }
}
/* ========== CENTER EMAIL, PHONE, AND ADDRESS TEXT ========== */
.info-card .info-content {
    text-align: center;
}
.info-card .info-label,
.info-card .info-value {
    display: block;
    margin: 0 auto;
    text-align: center;
}
.info-icon {
    margin: 0 auto 0.5rem;
}