/* 
 * Premium Account Dashboard Styles
 * Brand: ZEST Eyewear
 */

 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

 :root {
     --zest-accent: #f05a27;
     --zest-accent-hover: #d94a1d;
     --text-dark: #2d2d2d;
     --text-muted: #888888;
     --bg-light: #f8f9fa;
     --white: #ffffff;
     --border-color: #eaeaea;
     --input-focus-glow: rgba(240, 90, 39, 0.15);
     --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.03);
     --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.06);
     --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
 }
 
 body {
     font-family: 'Poppins', sans-serif;
     background-color: var(--bg-light);
     color: var(--text-dark);
 }
 
 /* --- Dashboard Layout --- */
 .dashboard-wrapper {
     display: flex;
     min-height: calc(100vh - 80px); /* Adjust based on header height */
     padding: 30px 0;
     gap: 30px;
 }
 
 /* --- Sidebar Navigation --- */
 .dashboard-sidebar {
     flex: 0 0 280px;
     background: var(--white);
     border-radius: 16px;
     box-shadow: var(--shadow-soft);
     padding: 2rem 1rem;
     align-self: start;
     position: sticky;
     top: 30px;
 }
 
 .sidebar-user {
     text-align: center;
     margin-bottom: 2rem;
     padding-bottom: 1.5rem;
     border-bottom: 1px solid var(--border-color);
 }
 
 .user-avatar {
     width: 90px;
     height: 90px;
     border-radius: 50%;
     object-fit: cover;
     margin-bottom: 1rem;
     border: 3px solid var(--white);
     box-shadow: var(--shadow-medium);
 }
 
 .user-name {
     font-size: 1.1rem;
     font-weight: 600;
     margin-bottom: 5px;
     color: var(--text-dark);
 }
 
 .user-badge {
     display: inline-block;
     background: rgba(240, 90, 39, 0.1);
     color: var(--zest-accent);
     font-size: 0.75rem;
     font-weight: 600;
     padding: 4px 12px;
     border-radius: 20px;
     text-transform: uppercase;
     letter-spacing: 1px;
 }
 
 .sidebar-nav {
     list-style: none;
     padding: 0;
     margin: 0;
 }
 
 .sidebar-nav li {
     margin-bottom: 5px;
 }
 
 .sidebar-nav a {
     display: flex;
     align-items: center;
     padding: 12px 20px;
     color: var(--text-muted);
     text-decoration: none;
     font-size: 0.95rem;
     font-weight: 500;
     border-radius: 10px;
     transition: var(--transition);
 }
 
 .sidebar-nav a i {
     width: 24px;
     font-size: 1.1rem;
     margin-right: 10px;
     text-align: center;
 }
 
 .sidebar-nav a:hover {
     background-color: var(--bg-light);
     color: var(--text-dark);
 }
 
 .sidebar-nav li.active a {
     background-color: var(--zest-accent);
     color: var(--white);
     box-shadow: 0 5px 15px rgba(240, 90, 39, 0.3);
 }
 
 .sidebar-nav li.logout a {
     color: #dc3545;
     margin-top: 1rem;
     border-top: 1px solid var(--border-color);
     border-radius: 0 0 10px 10px;
     padding-top: 20px;
 }
 
 .sidebar-nav li.logout a:hover {
     background-color: #fff1f0;
     color: #dc3545;
 }
 
 /* --- Dashboard Content Area --- */
 .dashboard-content {
     flex: 1;
     min-width: 0; /* Prevent flex overflow */
 }
 
 .content-header {
     margin-bottom: 2rem;
 }
 
 .content-header h2 {
     font-size: 1.8rem;
     font-weight: 600;
     margin-bottom: 5px;
 }
 
 .content-header p {
     color: var(--text-muted);
     font-size: 0.95rem;
 }
 
 /* --- Cards --- */
 .dashboard-card {
     background: var(--white);
     border-radius: 16px;
     box-shadow: var(--shadow-soft);
     padding: 2.5rem;
     margin-bottom: 2rem;
     animation: fadeIn 0.5s ease-out;
 }
 
 @keyframes fadeIn {
     from { opacity: 0; transform: translateY(10px); }
     to { opacity: 1; transform: translateY(0); }
 }
 
 .card-title {
     font-size: 1.25rem;
     font-weight: 600;
     margin-bottom: 1.5rem;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }
 
 /* --- Form Controls (Floating Labels) --- */
 .form-group {
     position: relative;
     margin-bottom: 1.5rem;
 }
 
 .form-control {
     width: 100%;
     height: 55px;
     padding: 20px 15px 5px; /* Space for inner floating label */
     font-size: 0.95rem;
     color: var(--text-dark);
     background-color: var(--white);
     border: 1px solid var(--border-color);
     border-radius: 8px;
     transition: var(--transition);
     box-shadow: none !important;
     margin: 0;
 }
 
 select.form-control {
     appearance: none;
     background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d2d2d%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
     background-repeat: no-repeat;
     background-position: right 15px center;
     background-size: 10px;
 }
 
 .form-control:focus {
     border-color: var(--zest-accent);
     box-shadow: 0 0 0 4px var(--input-focus-glow) !important;
     outline: none;
 }
 
 .form-control::placeholder {
     color: transparent; 
 }
 
 .floating-label {
     position: absolute;
     left: 15px;
     top: 50%;
     transform: translateY(-50%);
     font-size: 0.95rem;
     color: #aaa;
     pointer-events: none;
     transition: var(--transition);
     padding: 0;
     margin: 0;
     z-index: 2;
     background: transparent;
 }
 
 .form-control:focus ~ .floating-label,
 .form-control:not(:placeholder-shown) ~ .floating-label {
     top: 15px;
     font-size: 0.75rem;
     color: var(--zest-accent);
     font-weight: 500;
 }
 
 .password-toggle {
     position: absolute;
     right: 15px;
     top: 50%;
     transform: translateY(-50%);
     cursor: pointer;
     color: #aaa;
     z-index: 3;
     margin: 0;
     transition: var(--transition);
 }
 
 .password-toggle:hover { color: var(--zest-accent); }
 
 /* --- Buttons --- */
 .btn-primary-custom {
     background-color: var(--text-dark);
     color: var(--white);
     border: none;
     border-radius: 10px;
     padding: 12px 25px;
     font-size: 0.95rem;
     font-weight: 600;
     transition: var(--transition);
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
 }
 
 .btn-primary-custom:hover {
     background-color: var(--zest-accent);
     color: var(--white);
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(240, 90, 39, 0.3);
 }
 
 .btn-outline-custom {
     background-color: transparent;
     color: var(--text-dark);
     border: 1px solid var(--border-color);
     border-radius: 10px;
     padding: 12px 25px;
     font-size: 0.95rem;
     font-weight: 600;
     transition: var(--transition);
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
 }
 
 .btn-outline-custom:hover {
     border-color: var(--text-dark);
     background-color: var(--bg-light);
 }
 
 /* --- Toggles / Switches --- */
 .toggle-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem 0;
     border-bottom: 1px solid var(--border-color);
 }
 
 .toggle-item:last-child {
     border-bottom: none;
     padding-bottom: 0;
 }
 
 .toggle-info h4 {
     font-size: 1rem;
     font-weight: 500;
     margin-bottom: 5px;
 }
 
 .toggle-info p {
     font-size: 0.85rem;
     color: var(--text-muted);
     margin: 0;
 }
 
 .zest-switch {
     position: relative;
     display: inline-block;
     width: 50px;
     height: 26px;
 }
 
 .zest-switch input {
     opacity: 0;
     width: 0;
     height: 0;
 }
 
 .zest-slider {
     position: absolute;
     cursor: pointer;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background-color: #ccc;
     transition: .4s;
     border-radius: 34px;
 }
 
 .zest-slider:before {
     position: absolute;
     content: "";
     height: 18px;
     width: 18px;
     left: 4px;
     bottom: 4px;
     background-color: white;
     transition: .4s;
     border-radius: 50%;
 }
 
 input:checked + .zest-slider {
     background-color: var(--zest-accent);
 }
 
 input:checked + .zest-slider:before {
     transform: translateX(24px);
 }
 
 /* --- Address & Payment Cards --- */
 .grid-cards {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
     gap: 20px;
 }
 
 .data-card {
     border: 1px solid var(--border-color);
     border-radius: 12px;
     padding: 1.5rem;
     position: relative;
     transition: var(--transition);
 }
 
 .data-card:hover {
     border-color: var(--text-muted);
     box-shadow: var(--shadow-soft);
 }
 
 .data-card.default {
     border-color: var(--zest-accent);
     background: rgba(240, 90, 39, 0.02);
 }
 
 .data-card-badge {
     position: absolute;
     top: 15px;
     right: 15px;
     background: var(--zest-accent);
     color: var(--white);
     font-size: 0.7rem;
     padding: 3px 8px;
     border-radius: 10px;
     font-weight: 600;
 }
 
 .data-card h4 {
     font-size: 1rem;
     font-weight: 600;
     margin-bottom: 10px;
     display: flex;
     align-items: center;
     gap: 10px;
 }
 
 .data-card p {
     font-size: 0.9rem;
     color: var(--text-muted);
     line-height: 1.6;
     margin-bottom: 1.5rem;
 }
 
 .data-card-actions {
     display: flex;
     gap: 15px;
 }
 
 .data-card-actions button {
     background: none;
     border: none;
     font-size: 0.9rem;
     font-weight: 500;
     color: var(--text-dark);
     cursor: pointer;
     transition: var(--transition);
     padding: 0;
 }
 
 .data-card-actions button:hover {
     color: var(--zest-accent);
 }
 
 .data-card-actions button.delete:hover {
     color: #dc3545;
 }
 
 .add-new-card {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     border: 1px dashed var(--text-muted);
     background: transparent;
     cursor: pointer;
     min-height: 200px;
 }
 
 .add-new-card i {
     font-size: 2rem;
     color: var(--text-muted);
     margin-bottom: 10px;
     transition: var(--transition);
 }
 
 .add-new-card span {
     font-weight: 500;
     color: var(--text-dark);
 }
 
 .add-new-card:hover {
     border-color: var(--zest-accent);
     border-style: solid;
 }
 
 .add-new-card:hover i {
     color: var(--zest-accent);
     transform: scale(1.1);
 }
 
 /* --- Mobile Sidebar Toggle --- */
 .mobile-menu-toggle {
     display: none;
     background: var(--white);
     border: 1px solid var(--border-color);
     border-radius: 8px;
     padding: 10px 15px;
     width: 100%;
     text-align: left;
     font-size: 1rem;
     font-weight: 500;
     margin-bottom: 1rem;
     cursor: pointer;
 }
 
 /* --- Responsive --- */
 @media (max-width: 991px) {
     .dashboard-wrapper {
         flex-direction: column;
     }
     
     .dashboard-sidebar {
         flex: auto;
         width: 100%;
         position: static;
         display: none; /* Hidden by default on mobile */
     }
     
     .dashboard-sidebar.show {
         display: block;
     }
     
     .mobile-menu-toggle {
         display: flex;
         justify-content: space-between;
         align-items: center;
     }
     
     .sidebar-user {
         display: none; /* Hide large avatar on mobile to save space */
     }
 }
 
 @media (max-width: 576px) {
     .dashboard-card {
         padding: 1.5rem;
     }
 }
