
/* Basic Setup */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    background-color: #f4f4f5; /* Equivalent of bg-background */
}

/* Main App Layout */
.app-container {
    display: flex;
}

/* Sidebar Shell */
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #ffffff; /* Equivalent of bg-background */
    border-right: 1px solid #e4e4e7; /* Equivalent of border-r */
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
}

/* Main Content Wrapper (from SidebarInset) */
.main-wrapper {
    flex-grow: 1;
    margin-left: 250px; /* Offset for the fixed sidebar */
}

/* Header in Main Content */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem; /* 56px */
    padding: 0 1.5rem; /* px-6 */
    border-bottom: 1px solid #e4e4e7;
    background-color: #ffffff;
}

.sidebar-trigger {
    display: none; /* Hidden by default, shown on mobile */
}

/* Main Content Area */
.main-content {
    padding: 1.5rem; /* p-6 */
}

/* Sidebar Content */
.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h1 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600; /* font-semibold */
    margin: 0;
}

.sidebar-nav {
    padding: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}
.nav-link svg {
    margin-right: 0.75rem; /* mr-2 */
    width: 20px;
    height: 20px;
}


/* CHANGE IT TO THIS */
.sidebar-nav .nav-link.active {
    background-color: #1a1a1a;
    border-radius: 8px;
    color: #fff;
}

/* --- dashboard Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    line-height: 1.5;
}

/* --- Layout --- */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: 2fr 1fr;
    }
    .todo-card {
        grid-column: 1 / -1;
    }
}

/* --- Card Styles --- */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header .icon {
    display: inline-flex;
    color: #333;
}

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

/* --- Plan Card --- */
.plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plan-item {
    background-color: #f0f2f5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.plan-item .time {
    font-weight: 600;
}

.plan-tag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 999px;
    border: 1px solid #ccc;
    color: #555;
}

/* --- Finance Card --- */
.finance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ebee;
}

.finance-item:last-of-type {
    border-bottom: none;
    padding-top: 0.75rem;
}

.finance-item span {
    font-size: 0.9rem;
    color: #606770;
}

.finance-item .finance-value {
    font-weight: 600;
    color: #1c1e21;
}
.finance-item .finance-value.expense {
    color: #d32f2f; /* Using color for semantic meaning, but can be changed to black */
    color: #000;
    font-weight: bold;
}
.finance-item .finance-value.balance {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.budget-tracker {
    margin-top: 0.5rem;
}
.budget-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #606770;
    margin-bottom: 0.25rem;
}
.progress-bar-container {
    background-color: #e9ebee;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    background-color: #1c1e21;
    height: 100%;
    border-radius: 999px;
}

/* --- To-Do Card --- */
.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.todo-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-bottom: 1px solid #e9ebee;
}
.todo-item:last-child {
    border-bottom: none;
}
.todo-item label {
    flex-grow: 1;
    font-size: 0.9rem;
    cursor: pointer;
}
.todo-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #8a8d91;
}
.priority-badge {
    padding: 0.1rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid #ccc;
}
.priority-badge.high {
    border-color: #1c1e21;
    font-weight: bold;
}
.priority-badge.medium {
    border-color: #8a8d91;
}

/* --- Buttons --- */
.button {
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    align-self: flex-start;
}

.button-outline {
    background-color: transparent;
    border: 1px solid #ccd0d5;
    color: #1c1e21;
}

.button-outline:hover {
    background-color: #f0f2f5;
}

/* --- Floating Action Button --- */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #1c1e21;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.fab svg {
    width: 24px;
    height: 24px;
}

/*dayplan-style.css*/
/* --- Global Styles & Variables --- */
:root {
    --background: #ffffff;
    --foreground: #020817;
    --card: #ffffff;
    --card-foreground: #020817;
    --popover: #ffffff;
    --popover-foreground: #020817;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #18181b;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 2rem;
}

/* --- Feature Placeholder & Header --- */
.feature-placeholder {
    max-width: 1280px;
    margin: auto;
}

.feature-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--primary-foreground);
    margin: 0 auto 1rem;
}

.icon-wrapper .lucide-icon {
    width: 32px;
    height: 32px;
}

.feature-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.feature-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Loader --- */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 16rem; /* 256px */
}

.loading-container p {
    margin-left: 0.5rem;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}


/* --- Main Layout & Card --- */
.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--card);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.card-content {
    padding: 1.5rem;
}

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 1rem;
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--card-foreground);
}

.input, .select {
    width: 100%;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--background);
    font-size: 0.875rem;
    box-sizing: border-box;
}

.input:focus, .select:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.form-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.full-width {
    grid-column: 1 / -1;
}

/* --- Buttons --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: calc(var(--radius) - 2px);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: var(--primary);
    color: var(--primary-foreground);
    width: 100%;
}

.button:hover {
    background-color: rgba(24, 24, 27, 0.9);
}

.button-outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--accent-foreground);
}

.button-outline:hover {
    background-color: var(--accent);
}

.button-ghost {
    background-color: transparent;
    border: none;
    padding: 0;
    width: 28px;
    height: 28px;
}
.button-ghost:hover {
    background-color: var(--accent);
}

.button .lucide-icon {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* --- Schedule List --- */
.schedule-list-container {
    margin-bottom: 1.5rem;
    max-height: 24rem; /* 384px */
    overflow-y: auto;
    padding-right: 0.5rem;
    space-y: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: rgba(244, 244, 245, 0.5); /* secondary/50 */
    border-radius: calc(var(--radius) - 2px);
    font-size: 0.875rem;
}

.schedule-item-details .time {
    font-weight: 600;
}

.schedule-item-tag {
    margin-left: 0.5rem;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 9999px;
    background-color: rgba(24, 24, 27, 0.2);
    color: var(--primary);
}

.delete-btn {
    color: var(--destructive);
}
.delete-btn .lucide-icon {
    width: 16px;
    height: 16px;
}

.empty-list-message {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    padding: 1rem 0;
}

/* --- Checkbox & Tooltip --- */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    visibility: hidden;
    width: 250px;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-align: left;
    border-radius: var(--radius);
    padding: 0.75rem;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    line-height: 1.4;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

.tooltip-content p {
    margin: 0 0 0.5rem 0;
}
.tooltip-content p:last-child {
    margin-bottom: 0;
}
.tooltip-note {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem !important;
}

/* --- Dialog (Modal) --- */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.dialog-content {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    width: 90%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
}

.dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.dialog-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.dialog-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.dialog-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 70vh;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0 1rem 0;
}
.dialog-body .form-section .subsection-title {
    margin-top: 0;
}

.dialog-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    border-radius: var(--radius);
    padding: 1rem;
    width: 350px;
    animation: toast-in 0.3s ease-out;
}

.toast.toast-out {
    animation: toast-out 0.3s ease-in forwards;
}

.toast.destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}
.toast.destructive .toast-description {
     color: rgba(250, 250, 250, 0.9);
}

.toast-title {
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}


/* --- Responsive Styles --- */
@media (min-width: 640px) { /* sm breakpoint */
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .button {
        width: auto;
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .main-content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card {
        grid-column: span 3 / span 3;
    }
}

/*expence tracker-style.css*/
/* --- Global Styles & Variables --- */
:root {
    --background: #ffffff;
    --foreground: #020817;
    --card: #ffffff;
    --card-foreground: #020817;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #18181b;
    --radius: 0.5rem;
    --green: #22c55e;
    --red: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    margin: 0;
    padding: 2rem;
}

/* --- Feature Placeholder & Header (Copied from previous example) --- */
.feature-placeholder { max-width: 1280px; margin: auto; }
.feature-header { text-align: center; margin-bottom: 2.5rem; }
.icon-wrapper { display: flex; justify-content: center; align-items: center; width: 64px; height: 64px; border-radius: 50%; background-color: var(--primary); color: var(--primary-foreground); margin: 0 auto 1rem; }
.icon-wrapper .lucide-icon { width: 32px; height: 32px; }
.feature-title { font-size: 2.25rem; font-weight: 700; margin: 0 0 0.5rem 0; }
.feature-description { font-size: 1.125rem; color: var(--muted-foreground); max-width: 600px; margin: 0 auto; }
.loading-container { display: flex; justify-content: center; align-items: center; height: 16rem; }
.loading-container p { margin-left: 0.5rem; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Main Layout & Cards --- */
.main-content-grid, .card-content { display: flex; flex-direction: column; gap: 1.5rem; }
.card { border-radius: var(--radius); border: 1px solid var(--border); background-color: var(--card); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.card-header, .card-content { padding: 1.5rem; }
.card-header { border-bottom: 1px solid var(--border); }
.card-title { font-size: 1.25rem; font-weight: 700; line-height: 1; margin: 0 0 0.25rem; }
.card-description { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }
.card-header-flex { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--border); }


/* --- Stats Grid --- */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.stat-card { padding: 1rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.stat-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.stat-card-title { font-size: 0.875rem; font-weight: 500; color: var(--card-foreground); margin: 0; }
.stat-card-content { font-size: 1.875rem; font-weight: 700; }
.text-green { color: var(--green); }
.text-destructive { color: var(--destructive); }
.text-muted { color: var(--muted-foreground); }

/* --- Progress Bar --- */
.progress-bar-container { width: 100%; height: 0.75rem; background-color: var(--secondary); border-radius: 9999px; overflow: hidden; }
.progress-bar { height: 100%; background-color: var(--primary); transition: width 0.3s ease-in-out; }
.progress-text { font-size: 0.75rem; color: var(--muted-foreground); text-align: right; margin-top: 0.25rem; margin-bottom: 1rem; }

/* --- Forms & Inputs --- */
.form-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.input, .select { width: 100%; height: 40px; padding: 0.5rem 0.75rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background-color: var(--background); font-size: 0.875rem; box-sizing: border-box; }
.input:focus, .select:focus { outline: 2px solid var(--ring); outline-offset: 2px; }
.input-group { display: flex; gap: 0.5rem; align-items: center; }
.input-group .input { flex-grow: 1; }

/* --- Buttons --- */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: calc(var(--radius) - 2px); border: 1px solid transparent; cursor: pointer; transition: background-color 0.2s; background-color: var(--primary); color: var(--primary-foreground); }
.button:hover { background-color: rgba(24, 24, 27, 0.9); }
.button-outline { background-color: transparent; border-color: var(--border); color: var(--accent-foreground); }
.button-outline:hover { background-color: var(--accent); }
.button-ghost {
     background-color: transparent;
      border: none; 
      padding: 0.5rem;
        height: 32px;
         color: var(--card-foreground); }
.button-ghost:hover { background-color: var(--accent); }
.button .lucide-icon { margin-right: 0.5rem; width: 16px; height: 16px; }
.button-ghost .lucide-icon { margin-right: 0; }

/* --- Table --- */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 500; color: var(--muted-foreground); }
tbody tr:last-child td { border-bottom: none; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.table-actions { display: flex; justify-content: center; gap: 0.25rem; }

/* --- Badge --- */
.badge { display: inline-block; padding: 0.25em 0.6em; font-size: 0.8em; font-weight: 600; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 9999px; }
.badge-income { background-color: #dcfce7; color: #166534; }
.badge-expense { background-color: #fee2e2; color: #991b1b; }

/* --- Dialog (Modal) --- */
.dialog-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 50; }
.dialog-content { background-color: var(--card); border-radius: var(--radius); box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); width: 90%; max-width: 425px; display: flex; flex-direction: column; }
.dialog-header { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.dialog-title { font-size: 1.125rem; font-weight: 600; margin: 0; }
.dialog-description { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
.dialog-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.dialog-body .form-row { display: grid; grid-template-columns: 1fr 3fr; align-items: center; gap: 1rem; }
.dialog-body .form-row .label { text-align: right; margin-bottom: 0; }
.dialog-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; }

/* --- Toast Notifications (Copied from previous example) --- */
#toast-container { position: fixed; top: 1.5rem; right: 1.5rem; z-index: 100; display: flex; flex-direction: column; gap: 0.75rem; }
.toast { background-color: var(--card); border: 1px solid var(--border); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); border-radius: var(--radius); padding: 1rem; width: 350px; animation: toast-in 0.3s ease-out; }
.toast.toast-out { animation: toast-out 0.3s ease-in forwards; }
.toast.destructive { background-color: var(--destructive); color: var(--destructive-foreground); border-color: var(--destructive); }
.toast.destructive .toast-description { color: rgba(250, 250, 250, 0.9); }
.toast-title { font-weight: 600; margin: 0 0 0.25rem 0; }
.toast-description { font-size: 0.875rem; color: var(--muted-foreground); margin: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* --- Responsive Styles --- */
@media (min-width: 768px) { /* md */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { /* lg */
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/*gym-tracker-style.css */
/* --- Base & Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f0f0;
    color: #000;
    margin: 0;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

p { margin: 0; }
a { color: #000; text-decoration: none; }
hr.separator {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 1rem 0;
}

.hidden { display: none !important; }

/* --- Layout --- */
.feature-placeholder {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-header h1 { font-size: 1.875rem; }
.feature-header p { color: #555; }
.feature-header .icon-placeholder svg { width: 32px; height: 32px; }

.main-content { padding-top: 1rem; }

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .sub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-container { grid-template-columns: repeat(3, 1fr); }
    .card-span-3 { grid-column: span 3 / span 3; }
}


/* --- Card Component --- */
.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.card.completed { background-color: #f9f9f9; }
.card.completed .card-title, .card.completed .card-description { color: #888; }
.card.completed .card-content { opacity: 0.6; }

.card-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title { font-size: 1.25rem; }
.card-description { font-size: 0.875rem; color: #555; }
.card-header-actions { display: flex; gap: 0.5rem; }

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}
.card-content.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
}

.icon-placeholder svg {
    width: 24px;
    height: 24px;
}

.placeholder-text {
    text-align: center;
    color: #888;
    font-size: 0.875rem;
    padding: 1rem 0;
}

.list-container {
    max-height: 10rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* --- Buttons & Inputs --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #ccc;
    background-color: #000;
    color: #fff;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button:hover { background-color: #333; }
.button:disabled { background-color: #ccc; cursor: not-allowed; }

.button.button-outline {
    background-color: transparent;
    border-color: #ccc;
    color: #000;
}
.button.button-outline:hover { background-color: #f0f0f0; }

.button.icon-button {
    padding: 0.5rem;
    background: transparent;
    border-color: #ccc;
    color: #000;
}
.icon-button svg { width: 16px; height: 16px; }

.button.w-full { width: 100%; }
.button.secondary { background-color: #e5e5e5; color: #333; border-color: #ccc; }
.button.secondary:hover { background-color: #d5d5d5; }

.input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    box-sizing: border-box;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.input-group .input { flex-grow: 1; }
.input-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* --- Specific Components --- */
/* Workout Plan */
#workout-exercises-content ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
#workout-exercises-content li {
    background-color: #f9f9f9;
    padding: 0.75rem;
    border-radius: 0.375rem;
}
#workout-exercises-content li p:first-child { font-weight: 600; }
#workout-exercises-content li p:last-child { font-size: 0.875rem; color: #555; }
#toggle-workout-completion-btn svg { width: 20px; height: 20px; margin-right: 0.5rem;}


/* Protein Tracker */
.progress-bar-container {
    width: 100%;
    height: 0.5rem;
    background-color: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin: 1rem 0;
}
.progress-bar {
    height: 100%;
    background-color: #000;
    transition: width 0.3s ease-in-out;
}
.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 0.375rem;
}
.list-item .delete-btn {
    background: none; border: none; cursor: pointer; padding: 0.25rem;
}
.delete-btn svg { width: 16px; height: 16px; color: #c00; }

/* Quick Log Food */
.quick-log-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.quick-log-grid .button {
    justify-content: space-between;
    text-align: left;
    height: auto;
    padding: 0.5rem;
    background-color: transparent;
    border: 1px solid #ccc;
    color: #000;
}
.quick-log-grid .button.logged {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
    background-color: #f0f0f0;
}
.quick-log-grid .button:disabled {
    cursor: not-allowed;
    color: #888;
}
.quick-log-grid .button .check-icon { color: #000; }


/* --- Calendar --- */
.calendar-container {
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 1rem;
    width: 100%;
    max-width: 350px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.calendar-day, .calendar-day-header {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    font-size: 0.875rem;
}
.calendar-day-header { font-weight: 600; color: #555; }
.calendar-day {
    cursor: pointer;
    border-radius: 0.25rem;
}
.calendar-day:not(.empty):hover { background-color: #f0f0f0; }
.calendar-day.other-month { color: #aaa; }
.calendar-day.today {
    background-color: #000;
    color: #fff;
    font-weight: bold;
}
.calendar-day.completed { outline: 2px solid #28a745; }
.calendar-day.missed { outline: 2px solid #dc3545; }


/* --- Dialogs/Modals --- */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}
.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    z-index: 50;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
}
.dialog-title { font-size: 1.25rem; }
.dialog-description { color: #555; margin-top: 0.25rem; }
.dialog-content { padding: 1.5rem; margin: 1rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.dialog-content.scrollable { max-height: 60vh; overflow-y: auto; }
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
}
.form-section { border: 1px solid #eee; border-radius: 0.375rem; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.form-group { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.item-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.error-message {
    color: #c00;
    border: 1px solid #ffbaba;
    background-color: #fcebeb;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.help-text { font-size: 0.75rem; color: #888; }


/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    pointer-events: none;
}
.toast.show {
    opacity: 1;
    bottom: 30px;
}
.toast.destructive {
    background-color: #c00;
}


/* --- Loader --- */
.loader-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    gap: 1rem;
}
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*idea-capture-style.css*/
/* --- Base and Variables --- */
:root {
    --background: #f8fafc;
    --card-background: #ffffff;
    --primary: #1e293b;
    --primary-foreground: #ffffff;
    --accent: #f59e0b;
    --accent-foreground: #1e293b;
    --secondary: #e2e8f0;
    --secondary-foreground: #334155;
    --border-color: #e2e8f0;
    --text-color: #0f172a;
    --muted-foreground: #64748b;
    --input-background: #ffffff;
    --input-border: #cbd5e1;
    --input-focus-ring: #60a5fa;

    --font-sans: 'Inter', sans-serif;
    --font-headline: 'Poppins', sans-serif;

    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    font-family: var(--font-sans);
    margin: 0;
    padding: 2rem;
}

/* --- Feature Placeholder --- */
.feature-placeholder {
    max-width: 1200px;
    margin: auto;
}

.feature-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.feature-icon-wrapper {
    display: inline-flex;
    padding: 0.75rem;
    background-color: var(--card-background);
    border-radius: 9999px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
}

.feature-title {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-headline);
    margin: 0;
}

.feature-description {
    color: var(--muted-foreground);
    margin-top: 0.5rem;
    font-size: 1.125rem;
}

/* --- Content Layout --- */
.content-wrapper > * + * {
    margin-top: 1.5rem;
}

/* --- Card Component --- */
.card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.shadow-md { box-shadow: var(--shadow-md); }
.card:hover { box-shadow: var(--shadow-xl); }

.card-header { padding: 1.5rem; }
.card-content { padding: 0 1.5rem 1.5rem 1.5rem; flex-grow: 1; }
.card-footer { padding: 0 1.5rem 1.5rem 1.5rem; display: flex; justify-content: flex-end; }

.card-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
}

.font-headline { font-family: var(--font-headline); }
.text-xl { font-size: 1.25rem; } /* For new idea card title */
.text-2xl { font-size: 1.5rem; } /* For "Your Ideas" */

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* --- Form Elements --- */
.card-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input, .textarea {
    width: 100%;
    padding: 0.75rem; /* p-3 */
    font-size: 1rem; /* text-base */
    border: 1px solid var(--input-border);
    border-radius: 0.375rem;
    background-color: var(--input-background);
    box-sizing: border-box;
}

.input:focus, .textarea:focus {
    outline: none;
    border-color: var(--input-focus-ring);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5);
}

/* --- Button Component --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.875rem; /* size-sm default */
    padding: 0.5rem 1rem;
}

.btn:hover { background-color: #334155; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-full-width { width: 100%; }

.btn.btn-outline {
    background-color: transparent;
    border-color: var(--input-border);
    color: var(--text-color);
}

.btn.btn-outline:hover { background-color: var(--secondary); }
.icon-mr { margin-right: 0.5rem; }

/* --- Idea List --- */
.list-title {
    margin-bottom: 1rem;
}

.idea-grid {
    display: grid;
    /* This is the new magic rule! */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.2em * 3); /* approximation for 3 lines */
}

.text-sm { font-size: 0.875rem; }
.text-muted-foreground { color: var(--muted-foreground); }

.card-header .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* --- Badge Component --- */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.badge.variant-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.badge.bg-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

/* --- Placeholders and Empty States --- */
.placeholder-text {
    color: var(--muted-foreground);
    text-align: center;
    padding: 1.5rem 0;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--muted-foreground);
    background-color: var(--card-background);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
}

/* --- Media Queries for Responsive Grid --- */
@media (min-width: 768px) { /* md breakpoint */
    .idea-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .idea-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*to-do list-style.css*/
/* --- Base and Variables --- */
:root {
    --background: #f8fafc;
    --card-background: #ffffff;
    --primary: #1e293b;
    --primary-foreground: #ffffff;
    --secondary: #f1f5f9;
    --border-color: #e2e8f0;
    --text-color: #0f172a;
    --muted-foreground: #64748b;
    --destructive: #ef4444;
    --input-background: #ffffff;
    --input-border: #cbd5e1;
    --input-focus-ring: #60a5fa;

    --priority-high: #ef4444;
    --priority-medium: #f59e0b;
    --priority-low: #22c55e;

    --font-sans: 'Inter', sans-serif;
    --font-headline: 'Poppins', sans-serif;

    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --border-radius: 0.5rem;
}

body {
    background-color: var(--background);
    color: var(--text-color);
    font-family: var(--font-sans);
    margin: 0;
    padding: 2rem;
}

/* --- Feature Placeholder Layout --- */
.feature-placeholder { max-width: 1200px; margin: auto; }
.feature-header { text-align: center; margin-bottom: 2.5rem; }
.feature-icon-wrapper { display: inline-flex; padding: 0.75rem; background-color: var(--card-background); border-radius: 9999px; box-shadow: var(--shadow-md); margin-bottom: 1rem; }
.feature-icon { width: 2.5rem; height: 2.5rem; color: var(--primary); }
.feature-title { font-size: 2.25rem; font-weight: 700; font-family: var(--font-headline); margin: 0; }
.feature-description { color: var(--muted-foreground); margin-top: 0.5rem; font-size: 1.125rem; }
.feature-content .space-y-6 > * + * { margin-top: 1.5rem; }

/* --- Loading State --- */
.loading-container { display: flex; justify-content: center; align-items: center; height: 16rem; /* h-64 */ }
.loading-container p { margin-left: 0.5rem; color: var(--muted-foreground); }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Card & Content --- */
.card { background-color: var(--card-background); border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.shadow-md { box-shadow: var(--shadow-md); }
.card-content { padding: 1rem; }

/* --- Add Task Form --- */
.add-task-form { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.add-task-controls { display: flex; gap: 0.5rem; align-items: center; }
.input { width: 100%; padding: 0.75rem; font-size: 1rem; border: 1px solid var(--input-border); border-radius: 0.375rem; background-color: var(--input-background); box-sizing: border-box; }
.input:focus { outline: none; border-color: var(--input-focus-ring); box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5); }
.flex-grow { flex-grow: 1; }
.date-input { padding: 0.625rem; width: auto; }

/* --- Custom Select Dropdown --- */
.select-wrapper { position: relative; display: inline-block; }
.select-input { width: 120px; -webkit-appearance: none; -moz-appearance: none; appearance: none; background-color: white; border: 1px solid var(--input-border); border-radius: 0.375rem; padding: 0.625rem 2rem 0.625rem 0.75rem; font-size: 0.875rem; cursor: pointer; }
.select-wrapper::after { content: '▼'; font-size: 0.6rem; color: var(--muted-foreground); position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); pointer-events: none; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 500; border-radius: 0.375rem; border: 1px solid transparent; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.add-btn { background-color: var(--primary); color: var(--primary-foreground); padding: 0.75rem; width: 100%; }
.add-btn:hover { background-color: #334155; }
.add-btn .btn-text { margin-left: 0.5rem; display: none; }
.btn-ghost { background: transparent; }
.btn-icon { padding: 0.5rem; width: 2rem; height: 2rem; }
.btn-ghost.delete-btn { color: var(--muted-foreground); }
.btn-ghost.delete-btn:hover { color: var(--destructive); background-color: rgba(239, 68, 68, 0.1); }

/* --- Task List --- */
.task-list { max-height: 60vh; overflow-y: auto; padding-right: 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.task-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: var(--border-radius); transition: background-color 0.2s; }
.task-item:hover { background-color: rgba(241, 245, 249, 0.5); }
.task-item .drag-handle { color: var(--muted-foreground); cursor: grab; }
.task-checkbox { width: 1.25rem; height: 1.25rem; }
.task-text-content { flex-grow: 1; }
.task-label { font-size: 1rem; cursor: pointer; }
.task-label.completed { text-decoration: line-through; color: var(--muted-foreground); }
.task-date { font-size: 0.75rem; color: var(--muted-foreground); }

/* --- Priority Badge --- */
.priority-badge { padding: 2px 8px; font-size: 0.75rem; color: white; border-radius: 9999px; text-transform: capitalize; }
.badge-high { background-color: var(--priority-high); }
.badge-medium { background-color: var(--priority-medium); }
.badge-low { background-color: var(--priority-low); }

/* --- Empty State --- */
.empty-state { text-align: center; color: var(--muted-foreground); padding: 1rem 0; }

/* --- Responsive Adjustments --- */
@media (min-width: 640px) { /* sm breakpoint */
    .add-task-form { flex-direction: row; align-items: center; }
    .add-task-controls { flex-shrink: 0; }
    .add-btn { width: auto; }
    .add-btn .btn-text { display: inline; }
}

/*secure note-style.css*/
/* --- CSS Variables and Global Styles --- */
:root {
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #09090b;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--secondary);
    color: var(--foreground);
    margin: 0;
    line-height: 1.5;
}

/* --- Main Layout & Feature Placeholder --- */
.feature-placeholder {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.feature-header {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.feature-icon-wrapper i {
    width: 2.5rem;
    height: 2.5rem;
}

.feature-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}

.feature-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

.actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.content-wrapper {
    min-height: calc(100vh - 20rem);
}

/* --- Placeholders (Loading & Empty State) --- */
.placeholder-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--muted-foreground);
    padding: 2.5rem 0;
    min-height: calc(100vh - 30rem);
}

.loader-icon i {
    width: 2rem;
    height: 2rem;
    animation: spin 1s linear infinite;
    color: var(--primary);
}

.placeholder-container p {
    margin: 0.5rem 0 0;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.25rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Notes Grid & Cards --- */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

.card-header {
    padding: 1rem 1.5rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.card-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.card-content {
    padding: 0 1.5rem 1rem;
    flex-grow: 1;
}

.card-content p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn i {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
}
.btn.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
.btn.btn-lg i {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.btn-primary:hover {
    background-color: rgba(24, 24, 27, 0.9);
}

.btn-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}
.btn-destructive:hover {
    background-color: rgba(239, 68, 68, 0.9);
}

.btn-outline {
    border-color: var(--border);
    background-color: transparent;
    color: var(--foreground);
}
.btn-outline:hover {
    background-color: var(--accent);
}

/* --- Dialog / Modal --- */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}
.dialog-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.dialog-content {
    background-color: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    width: 90%;
    max-width: 500px;
    transform: scale(1);
    transition: transform 0.2s ease-in-out;
}
.dialog-overlay.hidden .dialog-content {
    transform: scale(0.95);
}

.dialog-header { padding: 1.5rem; }
.dialog-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.dialog-description { color: var(--muted-foreground); margin: 0.5rem 0 0; }
.dialog-body { padding: 0 1.5rem 1.5rem; }
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-input, .form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    box-sizing: border-box;
}
.form-input:focus, .form-textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toast {
    background-color: var(--foreground);
    color: var(--background);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 350px;
    opacity: 0;
    transform: translateX(100%);
    animation: toast-in 0.5s forwards;
}
.toast.toast-destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}
@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
.toast-content .title {
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.toast-content .description {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}


/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/*Password Manager Style.css*/
/* style.css */
:root {
    --background: #ffffff;
    --foreground: #020817;
    --card: #ffffff;
    --card-foreground: #020817;
    --popover: #ffffff;
    --popover-foreground: #020817;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #020817;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--secondary);
    color: var(--foreground);
    margin: 0;
    padding: 2rem 1rem;
}

.main-container {
    max-width: 1280px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Feature Header */
.feature-header {
    text-align: center;
    margin-bottom: 2rem;
}
.feature-header .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-foreground);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.feature-header .icon-wrapper i {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}
.feature-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}
.feature-header p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: 0.5rem;
}

/* Loader */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 0;
    min-height: 200px;
}
.loader-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}
.loader-text {
    color: var(--muted-foreground);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Layout & Spacing */
.app-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.col-span-2 { grid-column: span 2 / span 2; }
.gap-4 { gap: 1rem; }

/* Card Component */
.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease-in-out;
}
.card.display-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.card-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header .header-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}
.card-description {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    word-break: break-all;
}
.card-description a {
    color: var(--primary);
    text-decoration: none;
}
.card-description a:hover {
    text-decoration: underline;
}
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1; /* For flex-col cards */
}
.card-footer {
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
}

.add-credential-card .card-header {
    border-bottom: none;
    padding-bottom: 0;
}
.add-credential-card .card-content {
    padding-top: 1rem;
}

/* Form Elements */
label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.input, .select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    font-size: 0.875rem;
    box-sizing: border-box;
}
.input:focus, .select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.input[readonly] {
    background-color: var(--muted);
    opacity: 0.8;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon .input {
    padding-right: 2.5rem; /* Space for the icon button */
}
.input-with-icon .icon-button {
    position: absolute;
    right: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.input-with-icon .icon-button:hover {
    color: var(--foreground);
}
.input-with-icon .icon-button i {
    width: 1.25rem;
    height: 1.25rem;
}
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--muted-foreground);
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.form-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Button Component */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.button-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.button-primary:hover {
    background-color: rgba(24, 24, 27, 0.9);
}
.button.add-button {
    width: 100%;
    margin-top: 1rem;
}
.button.outline {
    background-color: transparent;
    border-color: var(--input);
    color: var(--foreground);
}
.button.outline:hover {
    background-color: var(--accent);
}
.button.destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}
.button.destructive:hover {
    background-color: rgba(239, 68, 68, 0.9);
}
.button.ghost {
    background-color: transparent;
    color: var(--foreground);
}
.button.ghost:hover {
    background-color: var(--accent);
}
.button i {
    width: 1rem;
    height: 1rem;
}

/* Accounts List */
#accounts-list-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.category-group h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

/* Specific display card content */
.display-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}
.display-card-content p {
    margin: 0;
}
.display-card-content strong {
    font-weight: 500;
}
.display-card-content .sensitive-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.display-card-content .sensitive-input-wrapper .input {
    flex-grow: 1;
    font-size: 0.8rem;
    background-color: rgba(244, 244, 245, 0.5);
}
.display-card-content .sensitive-input-wrapper .button {
    padding: 0;
    width: 2rem;
    height: 2rem;
}
.display-card-content .sensitive-input-wrapper .button i {
    width: 1rem;
    height: 1rem;
}

.sub-heading {
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sub-heading i {
    width: 1.25rem;
    height: 1.25rem;
}
.sub-heading-sm {
    font-weight: 600;
    font-size: 0.875rem;
    color: rgba(24, 24, 27, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
}
.sub-heading-sm i {
    width: 1rem;
    height: 1rem;
}
.border-t-dashed {
    border-top: 1px dashed var(--border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}
.toast {
    background-color: var(--card);
    color: var(--foreground);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}
.toast.destructive {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}
.toast-title {
    font-weight: 600;
}
.toast-description {
    font-size: 0.875rem;
    opacity: 0.9;
}


/* Responsive Design */
@media (min-width: 768px) {
    .add-button {
        width: auto;
    }
    .form-section.grid-cols-2 {
        display: grid;
    }
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .accounts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================= */
/*  FIX FOR DIALOG SCROLLING & LAYOUT        */
/* ========================================= */

/* 1. Make the main dialog container a flex column.
   This stacks its children (header, content, footer) vertically. */
.dialog {
    display: flex;
    flex-direction: column;
    max-height: 90vh; /* Prevent the dialog from being taller than the screen */
    overflow: hidden; /* Hide the main dialog's own scrollbar */
}

/* 2. Style the header and footer to be fixed in place.
   'flex-shrink: 0' prevents them from shrinking if content is large. */
.dialog .dialog-title,
.dialog .dialog-description {
    padding-bottom: 1rem; /* Add some spacing */
}
.dialog .dialog-footer {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb; /* Optional: adds a nice separator line */
    padding-top: 1rem;
    margin-top: 1rem;
    background-color: white; /* Ensures it's not transparent */
}

/* 3. This is the most important part.
   This makes the middle content area take up all available space
   and enables its own vertical scrollbar when needed. */
.dialog .dialog-content.scrollable {
    flex-grow: 1; /* Allow this element to grow and fill space */
    overflow-y: auto; /* Show a vertical scrollbar ONLY when content overflows */
    padding-right: 1rem; /* Add some space so content isn't right against the scrollbar */
}

/* 4. A small fix for the list items inside the dialog to align them nicely. */
.dialog .item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Add this to the bottom of your style.css file */

/* 1. General style for icons inside buttons */
.button .lucide-icon {
    /* This ensures the icon lines take the color of the button's text */
    stroke: currentColor; 
}

/* 2. Style for the delete button's icon */
.button.text-destructive {
    /* Define the destructive color (e.g., red) */
    color: #ef4444; /* A common red color */
}

.button.text-destructive:hover {
    color: #dc2626; /* A darker red for hover */
    background-color: #fee2e2;
}

/* 3. A general reset to make sure no background color is interfering */
.table-actions .button svg {
    background-color: transparent;
}
/* --- APP SHELL & SIDEBAR (NEW) --- */
.app-container {
    display: flex;
}

.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #e4e4e7;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
}

.main-wrapper {
    flex-grow: 1;
    margin-left: 250px; /* Offset for the fixed sidebar */
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e4e4e7;
    background-color: #ffffff;
}

.sidebar-trigger {
    display: none; /* Shown on mobile */
}

.sidebar-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-nav {
    padding: 0.5rem;
    flex-grow: 1;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
}
.nav-link svg {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
}

/* User-specified modification for active link */
.sidebar-nav .nav-link.active {
    background-color: #1a1a1a;
    border-radius: 8px;
    color: #fff;
}


/* --- DASHBOARD & WIDGET COMPONENTS (NEW) --- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem; 
}
@media (min-width: 1024px) { 
    .stats-grid { grid-template-columns: repeat(4, 1fr); } 
}

.stat-card { 
    padding: 1rem; 
    border: 1px solid var(--border); 
    border-radius: calc(var(--radius) - 2px); 
}

.stat-card-title {
    font-size: 0.875rem; 
    font-weight: 500; 
}
.stat-card-content { 
    font-size: 1.875rem; 
    font-weight: 700; 
}
.text-green { color: #22c55e; }

/* Budget / Progress Bar */
.budget-tracker { margin-top: 0.5rem; }
.budget-header { display: flex; justify-content: space-between; font-size: 0.8rem; margin-bottom: 0.25rem; }
.progress-bar-container { background-color: #e9ebee; border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { background-color: #1c1e21; height: 100%; border-radius: 999px; }

/* Finance List */
.finance-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.75rem; border-bottom: 1px solid #e9ebee; }
.finance-item:last-of-type { border-bottom: none; }
.finance-item .finance-value.expense { color: #d32f2f; font-weight: bold; }
.finance-item .finance-value.balance { font-size: 1.5rem; font-weight: bold; }

/* Day Plan List */
.plan-list { list-style: none; padding: 0; margin: 0 0 1rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.plan-item { background-color: #f0f2f5; padding: 0.75rem 1rem; border-radius: 6px; }
.plan-item .time { font-weight: 600; }
.plan-tag { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; font-size: 0.75rem; border-radius: 999px; border: 1px solid #ccc; }

/* To-do List Item */
.todo-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; border-bottom: 1px solid #e9ebee; }
.todo-item:last-child { border-bottom: none; }
.todo-item label { flex-grow: 1; cursor: pointer; }
.todo-item input[type="checkbox"]:checked + label { text-decoration: line-through; color: #8a8d91; }
.priority-badge { padding: 0.1rem 0.6rem; font-size: 0.75rem; font-weight: 500; border-radius: 999px; border: 1px solid #ccc; }
.priority-badge.high { border-color: #1c1e21; font-weight: bold; }

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background-color: #1c1e21;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.fab svg { width: 24px; height: 24px; }


/* --- TABLE STYLES (NEW) --- */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 500; color: var(--muted-foreground); }
tbody tr:last-child td { border-bottom: none; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-medium { font-weight: 500; }
.table-actions { display: flex; justify-content: center; gap: 0.25rem; }


/* --- NEW BADGE VARIANTS --- */
.badge-income { background-color: #dcfce7; color: #166534; }
.badge-expense { background-color: #fee2e2; color: #991b1b; }
.badge-high { background-color: var(--priority-high, #ef4444); color: white; }
.badge-medium { background-color: var(--priority-medium, #f59e0b); color: white; }
.badge-low { background-color: var(--priority-low, #22c55e); color: white; }


/* --- DIALOG / MODAL COMPONENT (NEW & MODIFIED) --- */
.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.dialog-content {
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    width: 90%;
    max-width: 520px;
    /* User-specified fix for scrolling */
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}
.dialog-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.dialog-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.dialog-description { color: var(--muted-foreground); margin: 0.5rem 0 0; }
.dialog-body {
    padding: 1.5rem;
    /* User-specified fix for scrolling */
    flex-grow: 1;
    overflow-y: auto;
}
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}


/* --- CALENDAR COMPONENT (NEW) --- */
.calendar-container {
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    padding: 1rem;
    width: 100%;
    max-width: 350px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}
.calendar-day, .calendar-day-header {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1;
    font-size: 0.875rem;
}
.calendar-day-header { font-weight: 600; color: #555; }
.calendar-day { cursor: pointer; border-radius: 0.25rem; }
.calendar-day:not(.empty):hover { background-color: #f0f0f0; }
.calendar-day.other-month { color: #aaa; }
.calendar-day.today { background-color: #000; color: #fff; font-weight: bold; }
.calendar-day.completed { outline: 2px solid #28a745; }
.calendar-day.missed { outline: 2px solid #dc3545; }


/* --- BUTTON ICON & COLOR FIX (MODIFIED) --- */
.button .lucide-icon, .button svg {
    stroke: currentColor; 
}
.button.text-destructive {
    color: var(--destructive, #ef4444);
}
.button.text-destructive:hover {
    color: #dc2626; /* Darker red for hover */
    background-color: #fee2e2;
}
/* --- FIX FOR IDEA CAPTURE DESTRUCTIVE BUTTON --- */
/* This targets the destructive button specifically within the idea capture feature */
#idea-capture-page .button.button-destructive {
    background-color: var(--destructive, #ef4444); /* Use destructive color variable, fallback to red */
    color: var(--destructive-foreground, #ffffff); /* Use foreground color, fallback to white */
    border-color: transparent;
}

#idea-capture-page .button.button-destructive:hover {
    background-color: #dc2626; /* A slightly darker red for hover */
}

/* This ensures the icon inside the button also gets the correct color */
#idea-capture-page .button.button-destructive .button-icon {
    color: var(--destructive-foreground, #ffffff);
}

/* ========================================= */
/*  MOBILE-FRIENDLY IDEA CARD STYLES         */
/* ========================================= */

/* This rule applies only when the screen width is 767px or less (i.e., tablets and phones) */
@media (max-width: 767px) {

  /* Target the footer of the idea cards */
  #idea-capture-page .card-footer {
    flex-direction: column; /* This is the key: it stacks the buttons vertically */
    align-items: stretch;    /* This makes each button expand to the full width of the card */
    gap: 0.75rem;            /* This adds a nice bit of space between the stacked buttons */
  }

  /* Just in case, ensure each button is treated as a full-width block */
  #idea-capture-page .card-footer .button {
    width: 100%;
    margin: 0; /* Reset any horizontal margins they might have had */
  }
}

/* ========================================= */
/*  HORIZONTAL SCROLLING IDEA ROW          */
/* ========================================= */

/* This is the container for the row */
#idea-capture-page .ideas-grid {
  display: flex;              /* Turns the container into a flexible row */
  overflow-x: auto;           /* Adds a horizontal scrollbar ONLY when needed */
  gap: 1.5rem;                /* Sets the space between the cards */
  padding-bottom: 1.5rem;     /* Adds space below the cards for the scrollbar */
  /* This makes the scrollbar "snap" to the start of a card, which is nice on touch devices */
  scroll-snap-type: x mandatory; 
}

/* This styles each individual card inside the row */
#idea-capture-page .ideas-grid > .card {
  /* This is the key: Don't grow, don't shrink, and have a base width of 320px */
  flex: 0 0 320px;
  scroll-snap-align: start; /* Aligns the card to the start of the view when snapping */
}

/* --- OPTIONAL: Prettier Scrollbar for the Idea Row --- */
#idea-capture-page .ideas-grid::-webkit-scrollbar {
  height: 8px; /* Makes the scrollbar thinner */
}

#idea-capture-page .ideas-grid::-webkit-scrollbar-track {
  background: var(--secondary, #f1f1f1); /* Light grey track */
  border-radius: 10px;
}

#idea-capture-page .ideas-grid::-webkit-scrollbar-thumb {
  background: var(--primary, #888); /* Darker grey handle */
  border-radius: 10px;
}

#idea-capture-page .ideas-grid::-webkit-scrollbar-thumb:hover {
  background: #555; /* Even darker on hover */
}

/* ========================================= */
/*  SIDEBAR TOGGLE STYLES                    */
/* ========================================= */

/* --- 1. Basic Setup & Animation --- */

/* Make the sidebar and main content animate smoothly */
.sidebar, .main-wrapper, .sidebar-title-text, .sidebar-header .nav-link {
    transition: all 0.25s ease-in-out;
}

/* --- 2. The Toggle Button --- */
.sidebar-trigger {
    display: block; /* Make it visible */
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    margin-right: 0.75rem; /* Space between button and logo */
}

.sidebar-trigger:hover {
    color: #000;
}

/* --- 3. Collapsed State --- */
/* These rules apply ONLY when the body has the .sidebar-collapsed class */

/* Shrink the sidebar and the content's margin */
body.sidebar-collapsed .sidebar {
    width: 72px;
}
body.sidebar-collapsed .main-wrapper {
    margin-left: 72px;
}

/* Hide the "Memoria" text */
body.sidebar-collapsed .sidebar-title-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin-left: -10px; /* Helps the fade-out effect */
}

/* Hide the text in the navigation links */
body.sidebar-collapsed .sidebar-nav .nav-link span {
    display: none;
}

/* Center the icons and remove their right margin when collapsed */
body.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
}
body.sidebar-collapsed .sidebar-nav .nav-link svg,
body.sidebar-collapsed .sidebar-nav .nav-link ion-icon {
    margin-right: 0;
}

/* --- 4. Mobile Responsiveness --- */
/* For screens 768px and smaller */
@media (max-width: 768px) {
    /* By default, the sidebar is collapsed on mobile */
    .sidebar {
        width: 72px;
    }
    .main-wrapper {
        margin-left: 72px;
    }
    .sidebar-title-text,
    .sidebar-nav .nav-link span {
        display: none;
    }
    .sidebar-nav .nav-link {
        justify-content: center;
    }
    .sidebar-nav .nav-link svg,
    .sidebar-nav .nav-link ion-icon {
        margin-right: 0;
    }

    /* When OPEN on mobile, make it cover more space */
    body.sidebar-open-mobile .sidebar {
        width: 250px;
    }
    /* Show the text when it's open */
    body.sidebar-open-mobile .sidebar-title-text,
    body.sidebar-open-mobile .sidebar-nav .nav-link span {
        display: inline-block; /* Or block, depending on original style */
        opacity: 1;
        width: auto;
    }
    /* Re-align items to the left when open */
    body.sidebar-open-mobile .sidebar-nav .nav-link {
        justify-content: flex-start;
    }
    body.sidebar-open-mobile .sidebar-nav .nav-link svg,
    body.sidebar-open-mobile .sidebar-nav .nav-link ion-icon {
        margin-right: 0.75rem;
    }
}

/* --- 3. Collapsed State --- */
/* These rules apply ONLY when the body has the .sidebar-collapsed class */

/* Shrink the sidebar and the content's margin */
body.sidebar-collapsed .sidebar {
    width: 72px;
}
body.sidebar-collapsed .main-wrapper {
    margin-left: 72px;
}

/* === ADD THIS NEW RULE HERE === */
body.sidebar-collapsed .sidebar-header {
    justify-content: center;
}
/* === END OF NEW RULE === */


/* Hide the "Memoria" text */
body.sidebar-collapsed .sidebar-title-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
    margin-left: -10px; /* Helps the fade-out effect */
}
/* ================================================= */
/*  IDEA CAPTURE PAGE LAYOUTS (FINAL)                */
/* ================================================= */

/* --- 1. HORIZONTAL ROW for the IMPLEMENTATION HUB --- */

/* The container for the horizontal row */
#implemented-ideas-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 1.5rem; /* Space for the scrollbar */
  scroll-snap-type: x mandatory;
}

/* Each card inside the horizontal row */
#implemented-ideas-grid > .card {
  flex: 0 0 320px; /* Don't grow, don't shrink, base width of 320px */
  scroll-snap-align: start;
}


/* --- 2. STANDARD GRID for the 'YOUR IDEAS' Section --- */

/* This is the default style for MOBILE (one column) */
#ideas-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 column by default */
    gap: 1.5rem;
}

/* For screens 768px and wider (TABLETS), switch to 2 columns */
@media (min-width: 768px) {
    #ideas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens 1024px and wider (DESKTOPS), switch to 3 columns */
@media (min-width: 1024px) {
    #ideas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Style for completed To-Do tasks */
.task-label.completed {
    text-decoration: line-through;
    color: #888; /* Optional: Makes the text a lighter grey */
    font-style: italic; /* Optional: A nice touch for completed items */
}

/* Style for the delete button (if you haven't added this already) */
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
}
.delete-btn:hover {
    color: #d9534f; /* Red on hover */
}
/* ================================================== */
/*  DEFINITIVE Styles for Password Vault Card Layout  */
/* ================================================== */

/* This creates the horizontal, wrapping grid for each category */
.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Styles for the individual password card */
.credential-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

/* Card Header: Title and Timestamp */
.credential-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.credential-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.credential-timestamp {
    font-size: 0.8rem;
    color: #6b7280;
    white-space: nowrap;
    text-align: right;
}

/* The divider line */
.credential-divider {
    border: none;
    height: 1px;
    background-color: #f3f4f6;
    margin: 1rem 0;
}

/* Card Body: Username, Password, etc. */
.credential-card-body {
    flex-grow: 1; /* Makes the body expand to fill space */
    min-height: 60px;
    color: #4b5563;
}
.credential-card-body p {
    margin-bottom: 0.5rem;
}

/* Card Footer: Buttons */
.credential-card-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    margin-top: auto; /* Pushes the footer to the bottom */
}

.credential-card-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
}
.credential-card-footer .btn-dark {
    background-color: #111827;
    color: #fff;
}
.credential-card-footer .btn-danger {
    background-color: #ef4444;
    color: #fff;
}
/* ========================================================== */
/*  CSS for Horizontal Scrolling Layout (Keeps Original Design) */
/* ========================================================== */

/* This targets the container that holds the cards for one category. */
/* Your JS already creates this with the class 'accounts-grid'. */
.accounts-grid {
    /* 1. Use Flexbox to arrange items in a row. */
    display: flex;

    /* 2. Prevent cards from wrapping to a new line. */
    flex-wrap: nowrap;

    /* 3. Show a horizontal scrollbar ONLY if the content overflows. */
    overflow-x: auto;
    
    /* 4. Add space between the cards in the row. */
    gap: 1.5rem;

    /* 5. Add some padding to the bottom for the scrollbar. */
    padding-bottom: 1rem;
}

/* This targets your original, full-width credential cards. */
.card.display-card {
    /* 1. Tell the card not to shrink to fit. */
    flex-shrink: 0;

    /* 2. Set the width of each card. '90%' makes it almost fill the screen. */
    /* Adjust this value if you want the cards to be wider or narrower. */
    width: 90%;

    /* 3. Optional: Set a max-width for very large screens. */
    max-width: 600px;
}

/* Styles for the To-Do item on the Dashboard */
.dashboard-container .todo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.dashboard-container .todo-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* General styles for all priority badges */
.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

/* Specific colors for each priority level */
.badge-high {
    background-color: #fbecec; /* Light red */
    color: #c53030;
}
.badge-medium {
    background-color: #fefcbf; /* Light yellow */
    color: #b7791f;
}
.badge-low {
    background-color: #ebf8ff; /* Light blue */
    color: #3182ce;
}
