:root {
    --primary: #f9fafb;
    --secondary: #f3f4f6;
    --accent: #3b82f6;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --shadow: rgba(0, 0, 0, 0.05);
    --border: #e5e7eb;
    --badge-most-popular: #ef4444;
    --badge-recommended: #eab308;
    --badge-budget-friendly: #10b981;
    --badge-premium: #8b5cf6;
    --sidebar-bg: #1f493d;
    --sidebar-text: #e5e7eb;
    --success: #10b981;
    --chart-grid: #e5e7eb;
}

[data-theme="dark"] {
    --primary: #1e293b;
    --secondary: #374151;
    --accent: #60a5fa;
    --text: #e5e7eb;
    --text-secondary: #9ca3af;
    --shadow: rgba(0, 0, 0, 0.2);
    --border: #4b5563;
    --badge-most-popular: #dc2626;
    --badge-recommended: #ca8a04;
    --badge-budget-friendly: #059669;
    --badge-premium: #7c3aed;
    --sidebar-bg: #1f493d;
    --sidebar-text: #fbfbfb;
    --success: #059669;
    --chart-grid: #d0d5dd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/*added the min-height,margin,display, flex-direction. This allows for the body text to fill the page  */
body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--primary);
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.5;
}

/*Allows the text to flex within the specified area */
main{
    flex: 1 0 auto;
}

header {
    background: var(--primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* if I remove the max-wdith 1200px and the margin 0 auto then the logo and buttons move to the furtherest corners
I can also just adjust the max-width over 1200px but under 1700px */

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.logo i {
    color: var(--accent);
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* the original nav ul gap is 1.5rem */

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

/* the original font-size is .9rem */

nav a:hover {
    color: var(--accent);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    top: 100%;
    left: 0;
    min-width: 180px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

.dropdown-menu li {
    margin: 0.25rem 0;
}

.header-buttons {
    display: flex;
    gap: 0.75rem;
}

/*this is for the sign in and sign up*/
.sign-up-btn {
    background: var(--success);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    text-decoration: none;
}

.sign-up-btn:hover {
    background: #11a329;
}
/* original background color is #2563eb ,green is #11a329 */

.sign-up-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}


.sign-in-btn {
    background: var(--success);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    text-decoration: none;
}

.sign-in-btn:hover {
    background: #11a329;
}
/* original background color is #2563eb ,green is #11a329 */

.sign-in-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/* make sure that html html classes match the code for the css otherwise they will not work correctly  */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero, .pricing, .resource-page, .faq-page, .calculator-page {
    margin-bottom: 3rem;
}

.hero h1, .pricing h1, .resource-page h1, .faq-page h1, .calculator-page h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    text-align: center;
}

.hero p, .pricing p, .resource-page p, .faq-page p, .calculator-page p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: center;
}

.link {
    color: var(--accent);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.link:hover {
    color: #2563eb;
}

.illustration {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 6px;
}

/* Main page cards code  */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}


.card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* the original, padding is 1.5rem, the border-radius is 6px and the border is 1px  */

.card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}
/* The original, font-size is 1.25rem and the margin-bottom is .75rem  */


/*.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
*/


/* added the display, justify-content, align-content, transform. the code after transform is the original code */
.pricing-card {
    display: grid;
    justify-content: center;
    align-content: center;
    transform: translate(15%);
    background: var(--secondary);
    width: 400px;
    padding: 1.5rem;
    border-radius: 5px;
    border: 1px solid var(--border);
}

/*added the width to chage the width of the pricing card, to get the original fat card back just remove the width line of code*/

.pricing-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.pricing-card .price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--badge-budget-friendly);
    margin-bottom: 0.75rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 0.75rem;
}

.pricing-card li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.access-button {
    background: var(--success);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    text-decoration: none;
}

.access-button:hover {
    background: #11a329;
}

.access-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/*
.quiz {
    margin-top: 3rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.quiz h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.quiz-question {
    margin-bottom: 0.75rem;
}

.quiz-question label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.quiz-question select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--primary);
    color: var(--text);
    font-size: 0.9rem;
}
    */

.auth {
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 6px;
    max-width: 360px;
    width: 100%;
    border: 1px solid var(--border);
}

.auth h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--primary);
    color: var(--text);
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.popup-content {
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border);
}

.popup-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.popup-content button {
    margin: 0.5rem;
}

/*got rid of the margin bottom, it causes the footer to gp up and not stay at the true bottom of the page*/
footer {
    background: var(--secondary);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--text);
}

/* FAQ Page Styles */
.faq-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
    margin: 1.5rem auto;
}

.faq-card {
    background: var(--secondary);
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 1rem;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '\f107';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    transition: transform 0.2s ease;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-answer.active {
    max-height: 150px;
    padding: 0.75rem 1rem;
}

/* changing the fon-size change the size of the text for the answer in the box */
.faq-answer p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}


/* About Us(About ElectricalIQ) specific styles */
.resource-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.resource-page h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    text-align: center;
}

.resource-page h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text);
}

.resource-page p {
    font-size: 1.25rem;          /* ← main body text size — adjust as needed */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-align: justify;
}

.resource-page ul,
.resource-page ol {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.resource-page li {
    margin-bottom: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .resource-page {
        padding: 2rem 1rem;
    }
    
    .resource-page h1 {
        font-size: 2.2rem;
    }
    
    .resource-page h2 {
        font-size: 1.8rem;
    }
    
    .resource-page p,
    .resource-page ul,
    .resource-page ol {
        font-size: 1.15rem;
    }
}


/* Calculator Page Styles */
.calculator-page {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-page h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.affiliate-disclosure {
    background: var(--secondary);
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid var(--border);
}

.affiliate-disclosure p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.featured-resource {
    margin: 1rem 0;
    text-align: center;
}

.featured-resource .callout {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

.calculator-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.calculator-card {
    display: flex;
    background: var(--primary);
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* added the box-shadow */

.calculator-card:hover {
    border-color: var(--accent);
}

.calculator-image {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--secondary);
}

.calculator-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.calculator-info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calculator-info h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.calculator-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: left;
}

.calculator-links {
    display: flex;
    gap: 1rem;
}

.calculator-links .link {
    font-size: .9rem;
}

/* added this new code in */
.calculator-links .link{
    background: var(--success);
    color: var(--primary);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.2s ease;
    text-decoration: none;

}

.calculator-links .link:hover {
    background: #2563eb;
    
}

.calculator-links .link:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
}

/*added the .calculator-links .link for the buttons */

.calculator-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}



.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ffffff;
}

.badge.most-popular {
    background: var(--badge-most-popular);
}

.badge.recommended {
    background: var(--badge-recommended);
}

.badge.budget-friendly {
    background: var(--badge-budget-friendly);
}

.badge.fe-approved {
background: var(--badge-budget-friendly);
}

.badge.premium {
    background: var(--badge-premium);
}

/* Diffculty level*/

.difficulty-section {
  padding: 80px 20px;
  background: var(--secondary);
  text-align: center;
}

.difficulty-section h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-description {
  max-width: 700px;
  margin: 0 auto 60px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.difficulty-card {
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.difficulty-card:hover {
  transform: translateY(-8px);
}

.difficulty-header {
  padding: 20px;
  color: white;
  font-weight: 600;
}

.difficulty-header.beginner { background: #10b981; }
.difficulty-header.novice { background: #ff3131; }
.difficulty-header.intermediate { background: #ffa500; }
.difficulty-header.advanced { background: #00008b; }
.difficulty-header.expert { background: #000000; }

.difficulty-body {
  padding: 25px;
  text-align: left;
}

.difficulty-body ul {
  padding-left: 20px;
  margin: 15px 0;
}

.difficulty-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.difficulty-footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.easy-badge { background: rgba(255,255,255,0.25); }
.medium-badge { background: rgba(255,255,255,0.25); }
.hard-badge { background: rgba(255,255,255,0.25); }

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.toggle-label {
    font-size: 14px;
    color: var(--sidebar-text);
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3bf654;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    width: 220px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 1.5rem;
}

.sidebar .logo {
    color: var(--sidebar-text);
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav a.active {
    background: var(--accent);
    color: var(--primary);
}

.sidebar-account {
    margin-top: auto;
}

.sidebar-account ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.sidebar-account a {
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.sidebar-account a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    padding: 0.75rem 0;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Discord Button in Sidebar */
.discord-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #3b82f6;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(88, 101, 242, 0.3);
}

.discord-btn:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.discord-btn i {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .discord-btn span {
        display: none;
    }
    .discord-btn {
        justify-content: center;
        padding: 12px;
    }
}

/* Main Content Area */
.main-content {
    width: calc(100% - 250px);
    margin-left: 250px;
    padding: 30px 40px;
    background: #f5f7fa;
}


/* Header Section */
.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2a44;
    margin-bottom: 20px;
}

.tab-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #e6e6e6;
}

.tab {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    padding-bottom: 10px;
    transition: color 0.2s ease;
}

.tab:hover {
    color: #1a2a44;
}

.tab.active {
    color: #1a2a44;
    font-weight: 700;
    border-bottom: 2px solid #3b82f6;
}

/* Settings Page Styles */
.settings-container {
    display: flex;
    gap: 1.5rem;
}

.settings-nav {
    width: 200px;
}

.settings-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.settings-nav a:hover {
    background: var(--secondary);
}

.settings-nav a.active {
    background: var(--accent);
    color: var(--primary);
}

.settings-content {
    flex: 1;
    background: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.settings-section {
    max-width: 500px;
}

.settings-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.settings-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #1a2a44;
    margin-bottom: 8px;
    display: block;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3b82f6;
}

.form-group select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%2364748b" d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
}

.helper-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #1a2a44;
}

.checkbox-label input {
    margin-right: 10px;
}

/* Password Management */
.password-section {
    margin-top: 30px;
}

.password-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2a44;
    margin-bottom: 20px;
}

.password-requirements {
    background: #f9fafb;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #64748b;
}

.password-requirements p {
    margin: 5px 0;
}

.password-requirements p:first-child {
    font-weight: 500;
    color: #1a2a44;
}

/* Action Buttons */
.save-button, .manage-subscription-button {
    padding: 10px 20px;
    background: #1f493d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-button:hover, .manage-subscription-button:hover {
    background: #1f493d;
}

/*dashboard*/
.dashboard-main {
    flex: 1;
    background: var(--primary);
    margin-left: 220px;
    padding: 1.5rem;
}

.dashboard-header {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.dashboard-header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-card {
    background: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 1rem;
    text-align: center;
}

.summary-card i {
    font-size: 1.5rem;
    color: var(--success);
    margin-bottom: 0.5rem;
}
/* the original background color was --accent */


.summary-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.summary-card p {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.progress-bar {
    background: var(--secondary);
    border-radius: 4px;
    height: 6px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.progress {
    background: var(--success);
    height: 100%;
    transition: width 0.3s ease;
}

/* the original background color was --accent */

.dashboard-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.main-panel, .side-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-graph {
    background: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 1rem;
}

.graph-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.graph-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--text);
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle input {
    cursor: pointer;
}

.main-graph canvas
{
    width: 100% !important;
    height: 250px !important;
    display: block;
} 
/*polar graph chart*/
.radar-chart canvas {
    width: 100% !important;
    height: 600px !important;
    display: block;
}

/*todo card*/
.todo-card {
    background: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 1rem;
}

.todo-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.todo-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.todo-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
}

.todo-card li.completed i {
    color: var(--success);
}

.todo-card .link {
    font-size: 0.9rem;
}

/* Polar Graph chart*/
.radar-chart {
    background: var(--primary);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 1rem;
}

.radar-chart h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

@media (max-width: 1024px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 15px;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 15px;
    }

    .settings-section {
        flex-direction: column;
        gap: 20px;
    }

    .settings-left, .settings-right {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .tab-nav {
        gap: 15px;
    }

    .tab {
        font-size: 14px;
    }

    .form-group input, .form-group select {
        font-size: 14px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 18px;
    }
}

    .main-graph canvas,
    .radar-chart canvas {
        height: 300px !important;
    }

    @media (max-width: 1024px) {
        .dashboard-content {
            grid-template-columns: 1fr;
        }
    
        .settings-container {
            flex-direction: column;
        }
    
        .settings-nav {
            width: 100%;
        }
    
        .settings-nav ul {
            flex-direction: row;
            flex-wrap: wrap;
        }

    }
