/* ==========================================================
   FOCUSTRACK - GLOBAL STYLESHEET
   Theme: Premium Glassmorphism
   Font: Poppins
   Tagline: Focus More. Achieve More.
========================================================== */

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

/* ================= CSS VARIABLES ================= */
:root {
    --primary: #7c3aed;
    --primary-light: #a855f7;
    --secondary: #06b6d4;
    --accent: #38bdf8;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --bg-dark: #0a0f1f;
    --bg-secondary: #111827;

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 15px 35px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.45);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --transition: all 0.35s ease;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);

    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 35%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.15), transparent 35%),
        linear-gradient(135deg, #050816, #0a0f1f 40%, #111827 100%);

    min-height: 100vh;
    line-height: 1.6;
}

/* ================= LINKS ================= */
a {
    text-decoration: none;
    color: inherit;
}

/* ================= LISTS ================= */
ul {
    list-style: none;
}

/* ================= IMAGES ================= */
img {
    max-width: 100%;
    display: block;
}

/* ================= CONTAINER ================= */
.container {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ================= GLASS CARD ================= */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 999px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

/* ================= FORM ELEMENTS ================= */
input,
textarea,
select {
    width: 100%;
    padding: 1rem 1.2rem;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-sm);

    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);

    font-family: inherit;
    font-size: 0.95rem;

    outline: none;
    transition: var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

/* ================= CARD ================= */
.card {
    padding: 2rem;
    border-radius: var(--radius-md);
}

/* ================= TYPOGRAPHY HELPERS ================= */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 3rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

/* ================= FLEX UTILITIES ================= */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================= SPACING UTILITIES ================= */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }








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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ================= CIRCULAR GLASS LOGO ================= */
.hero-logo {
    width: 240px;
    height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 2rem;

    border-radius: 50%;
    overflow: hidden;
    position: relative;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow:
        inset 0 0 35px rgba(255, 255, 255, 0.04),
        0 20px 60px rgba(124, 58, 237, 0.20),
        0 10px 30px rgba(6, 182, 212, 0.12);

    transition: var(--transition);
}

.hero-logo::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.45),
        rgba(6, 182, 212, 0.35)
    );
    z-index: -1;
    filter: blur(12px);
    opacity: 0.9;
}

.hero-logo:hover {
    transform: translateY(-6px) scale(1.03);
}

.hero-logo img {
    width: 78%;
    height: 78%;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ================= HERO TEXT ================= */
.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* ================= HERO BUTTONS ================= */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================
   FEATURES SECTION
========================================================== */

.features {
    padding: 4rem 0 6rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* ==========================================================
   SMOOTH LOGIN TRANSITION
========================================================== */

/* Smooth transitions for animated elements */
.hero-logo,
.hero-title,
.hero-tagline,
.hero-description,
.hero-actions,
.features {
    transition:
        transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 1.2s ease;
}

/* Logo and title move upward smoothly */
body.login-transition .hero-logo,
body.login-transition .hero-title {
    transform: translateY(-90px);
}

/* Remaining content fades out smoothly */
body.login-transition .hero-tagline,
body.login-transition .hero-description,
body.login-transition .hero-actions,
body.login-transition .features {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

/* Prevent interaction during transition */
body.login-transition {
    overflow: hidden;
}


/* ==========================================================
   AUTHENTICATION PAGES (LOGIN / REGISTER)
========================================================== */

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 3rem 2.5rem;
    text-align: center;
}

/* ================= LOGO ================= */
.auth-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.auth-logo img {
    width: 75%;
    height: 75%;
    border-radius: 50%;
    object-fit: contain;
}

/* ================= TITLES ================= */
.auth-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ================= FORM ================= */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    width: 100%;
}

.auth-btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* ================= FOOTER LINKS ================= */
.auth-footer {
    margin-top: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    font-weight: 600;
}

.back-home {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.back-home:hover {
    color: var(--text-primary);
}
























/* ==========================================================
   DASHBOARD STYLES
========================================================== */

.dashboard {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

/* ================= SIDEBAR ================= */
.sidebar {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;

    font-size: 1.35rem;
    font-weight: 700;
}

.sidebar-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-link {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ================= MAIN CONTENT ================= */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ================= HEADER ================= */
.dashboard-header {
    padding: 1.75rem 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

/* ================= STATS ================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.stat-card h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* ================= TASK SECTION ================= */
.tasks-section {
    padding: 2rem;
}

.tasks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tasks-header h2 {
    font-size: 1.8rem;
}

.tasks-header input {
    max-width: 320px;
}

/* ================= TASK LIST ================= */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    padding: 1.5rem;
    border-radius: 16px;
}

.task-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.task-item p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}


/* ==========================================================
   PROFILE PAGE STYLES
========================================================== */

.profile-card {
    padding: 2.5rem;
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.35);
}

.profile-top h2 {
    font-size: 2rem;
    margin-bottom: 0.35rem;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.profile-item {
    padding: 1.5rem;
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-item h3 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.profile-item p {
    font-weight: 500;
    line-height: 1.7;
}



/* ==========================================================
   IMPROVED TASK FORM SPACING
========================================================== */

.task-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;              /* Space between all form elements */
    margin-top: 2rem;          /* Space below "My Tasks" heading */
    margin-bottom: 2.5rem;     /* Space between form and task list */
}

.task-form input,
.task-form textarea {
    margin: 0;
}

.task-form textarea {
    min-height: 120px;
}

.task-form #taskDueDate {
    margin-top: 0.25rem;
}

.task-submit-btn {
    margin-top: 0.5rem;        /* Space above Add Task button */
    margin-bottom: 0.75rem;    /* Space below button */
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 14px;
}

.task-list {
    margin-top: 1.5rem;        /* Extra space before task cards */
}

.task-item {
    margin-bottom: 1.5rem;     /* Space between task cards */
}

.task-item:last-child {
    margin-bottom: 0;
}




