/* ========================
   RESET / BASE
======================== */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #fff0f5 0%, #ffffff 100%);
}

h1, h2, h3 {
    font-weight: 600;
}

p {
    font-weight: 400;
}

/* ========================
   NAVBAR
======================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: linear-gradient(135deg, #a0004f, #ff4d8d);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: white;
}

.nav-links .btn-primary {
    background: white;
    color: #ff4d8d;
    padding: 8px 16px;
    border-radius: 8px;
}

/* ========================
   HERO
======================== */

.public-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
    background: linear-gradient(135deg, #a0004f, #ff4d8d);
    color: white;
    gap: 40px;
}

.public-hero-text {
    flex: 1;
}

.public-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.public-hero-image img {
    width: 350px;
    mix-blend-mode: lighten;
}

.public-hero-image img {
    width: 350px;
    filter: drop-shadow(0 0 0 transparent);
}

/* ========================
   BUTTONS
======================== */
.btn-primary {
    background: white;
    color: #a0004f;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

/* ========================
   SECTIONS
======================== */
section {
    padding: 60px 80px;
    margin-bottom: 40px;
}

.about-section,
.features-section,
.purpose-section {
    background: white;
    border-radius: 20px;
    margin: 40px auto;
    padding: 60px;
    max-width: 1100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* ========================
   FEATURES
======================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-box {
    background: #fff0f5;
    padding: 25px;
    border: 1px solid #ffd6e6;
    text-align: center;
    border-radius: 12px;
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* ========================
   PURPOSE
======================== */
.purpose-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.purpose-item {
    background: #ffe6f0;
    padding: 12px;
    border-radius: 10px;
}

/* ========================
   AUTH (LOGIN/REGISTER)
======================== */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
    background: linear-gradient(135deg, #a0004f, #ff4d8d);
}

.auth-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 350px;
    text-align: center;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ========================
   DASHBOARD LAYOUT
======================== */
.dashboard {
    display: flex;
}

/* ========================
   SIDEBAR (FIXED CLEAN)
======================== */
.sidebar {
    width: 200px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #a0004f, #ff4d8d);
    color: white;
    padding: 20px;
    transition: width 0.3s ease; /* IMPORTANT */
    overflow: hidden; /* VERY IMPORTANT */
}

.sidebar ul {
    list-style: none;
    padding: 0;
    flex: 1;
}

.sidebar li {
    padding: 10px;
    border-radius: 8px;
}

.sidebar li:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar a {
    color: white;
    text-decoration: none;
    display: block;
}

.logout-btn {
    text-align: center;
    padding: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

/* COLLAPSE SIDEBAR */
.sidebar {
    width: 200px !important;
    transition: 0.3s;
}

/* COLLAPSED */
.sidebar.collapsed {
    width: 70px;
}

/* HIDE TEXT */
.sidebar.collapsed span {
    display: none;
}

/* CENTER ICONS */
.sidebar.collapsed a {
    text-align: center;
}

/* MAIN CONTENT SHIFT */
.main-content {
    margin-left: 220px;
    transition: 0.3s;
}

.main-content.expanded {
    margin-left: 70px;
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================
   MAIN CONTENT (FIXED)
======================== */
.main-content {
    margin-left: 220px; /* CRITICAL FIX */
    width: calc(100% - 220px);
    padding: 30px;
    background: #f9f9f9;
}

/* ========================
   CARDS
======================== */
.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ========================
   TABLE (CLEAN SINGLE)
======================== */
.styled-table {
    width: 100%;
    border-collapse: collapse;
}

.styled-table th {
    background: #ff4d8d;
    color: white;
    padding: 12px;
}

.styled-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* ========================
   OVERVIEW + SEARCH
======================== */
.top-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.overview,
.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px;
}

/* ========================
   CALENDAR
======================== */
.calendar-input {
    width: 100%;
    padding: 10px;
}

/*expenses*/
/* small buttons */
.btn-small {
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
}

.edit {
    background: #4CAF50;
    color: white;
}

.delete {
    background: #ff4d4d;
    color: white;
}

/*Tasks Page*/
/* BOARD */
.board {
    display: flex;
    gap: 20px;
}

/* COLUMN */
.column {
    flex: 1;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
}

/* TASK CARD */
.task-card {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
}

/* DONE STYLE */
.task-card.done {
    opacity: 0.6;
}

/* PRIORITY */
.priority {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.priority.low { background: #d4edda; }
.priority.medium { background: #fff3cd; }
.priority.high { background: #f8d7da; }

/* ACTIONS */
.actions a {
    margin-right: 5px;
    text-decoration: none;
}
/* CENTER LIKE LOGIN */
.center-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* MAIN BOX */
.content-box {
    width: 600px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* INPUTS MATCH LOGIN */
.content-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* TASK LIST */
.task-list {
    margin-top: 20px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f7fb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.task-item.done {
    opacity: 0.6;
    text-decoration: line-through;
}

/* ACTION BUTTONS */
.task-actions a {
    margin-left: 10px;
    text-decoration: none;
    font-size: 16px;
}

.done-btn {
    color: green;
}

.delete-btn {
    color: red;
}
/* CALENDAR */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day {
    background: #f6f7fb;
    padding: 10px;
    border-radius: 10px;
    min-height: 80px;
    font-size: 12px;
}

.calendar-task {
    background: #ff4d8d;
    color: white;
    padding: 3px 6px;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 11px;
}
/* LAYOUT */
.task-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.task-left {
    flex: 1;
}

.task-right {
    flex: 1.2;
}

/* CARD */
.card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* TASK ITEM */
.task-item {
    display: flex;
    justify-content: space-between;
    background: #f6f7fb;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.task-item.done {
    opacity: 0.6;
    text-decoration: line-through;
}

/* FILTER */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* CALENDAR */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background: #f6f7fb;
    padding: 10px;
    border-radius: 10px;
    min-height: 80px;
    font-size: 12px;
}

.calendar-task {
    background: #ff4d8d;
    color: white;
    padding: 3px 6px;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 11px;
}

/* CLEAN SELECT STYLE */
.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 40px 10px 15px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;

    position: relative;
    cursor: pointer;
}

/* ADD CUSTOM ARROW */
.styled-select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff4d8d' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

/* HOVER */
.styled-select:hover {
    border-color: #ff4d8d;
}

/* FOCUS */
.styled-select:focus {
    outline: none;
    border-color: #ff4d8d;
    box-shadow: 0 0 0 2px rgba(255,77,141,0.2);
}

/* TOP CARDS */
.dashboard-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    flex: 1;
    text-align: center;
}

/* SPLIT */
.dashboard-split {
    display: flex;
    gap: 20px;
}

.dashboard-left {
    flex: 1;
}

.dashboard-right {
    flex: 1;
}

/* REUSE */
.task-item {
    background: #f6f7fb;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}
.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f7fb;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.status-select {
    border-radius: 8px;
    padding: 5px 10px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* COLORS */
.status-select.pending {
    background: #ffe5ec;
    color: #d63384;
}

.status-select.in-progress {
    background: #fff3cd;
    color: #856404;
}

.status-select.done {
    background: #d4edda;
    color: #155724;
}
/* ===== DASHBOARD BALANCE FIX ===== */

/* FORCE SAME HEIGHT FEEL */
.dashboard-left .card,
.dashboard-right .card {
    min-height: 220px;
}

/* LIMIT EXPENSE CARD HEIGHT */
.dashboard-right .card {
    max-height: 250px;
    overflow-y: auto;
}

/* OPTIONAL: ADD SCROLL STYLE */
.dashboard-right .card::-webkit-scrollbar {
    width: 6px;
}

.dashboard-right .card::-webkit-scrollbar-thumb {
    background: #ff4d8d;
    border-radius: 10px;
}
.dashboard-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
/* HIDE RIGHT PANEL */
.hidden-panel {
    display: none;
}

/* EXPAND LEFT WHEN RIGHT IS HIDDEN */
.dashboard-split.single {
    grid-template-columns: 1fr;
}
.hidden-panel {
    display: none;
}

.dashboard-split.single {
    grid-template-columns: 1fr;
}
/* RIGHT SIDE SPLIT */
.right-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* NOTES */
.notes-card input {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
}

.note-item {
    display: flex;
    justify-content: space-between;
    background: #f6f7fb;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

/* TOGGLE */
.hidden-panel {
    display: none;
}

.dashboard-split.single {
    grid-template-columns: 1fr;
}
/* CENTER LIKE LOGIN */
.center-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.content-box {
    width: 500px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.content-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

