/*
    File: styles.css
    Description: CSS styles for the Dashboard UI.
    This stylesheet includes an animated gradient background.
*/

:root {
    --color-bg-primary: #0D1117;
    --color-bg-card: #161B22;
    --color-bg-subtle: #161B22;
    --color-bg-input: rgba(30, 41, 59, 0.5);
    --color-border: #30363d;
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #808080;
    --color-neon-teal: #00e5e5;
    --color-btn-upgrade: #F97316;
    --color-btn-upgrade-hover: #EA580C;
    --color-fuchsia-glow: #e923e9;
}

/* Global Styles */
body {
    background-color: var(--color-bg-primary);
    color: var(--color-text-secondary);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    position: relative; /* Essential for positioning the pseudo-element */
    overflow: hidden; /* Prevents overflow from the gradient effect */
}

/* New Gradient Pseudo-Element */
body::after {
    content: '';
    position: absolute;
    bottom: -50vh;
    right: -50vw;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at bottom right, rgba(0, 229, 229, 0.2), transparent 50%);
    z-index: -1; /* Puts the gradient behind all content */
    animation: gradient-pulse 10s ease-in-out infinite;
}

/* Keyframes for the gradient animation */
@keyframes gradient-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* All other existing CSS styles from the previous response should follow here */

/* ... (rest of your styles.css) ... */

/* Layout */
.max-w-6xl {
    max-width: 72rem;
}

.w-full {
    width: 100%;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 2rem;
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.5rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
}

.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 1rem;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0.75rem;
}

.gap-6 {
    gap: 1.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-grow {
    flex-grow: 1;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }

    .md\:flex-shrink-0 {
        flex-shrink: 0;
    }

    .md\:w-64 {
        width: 16rem;
    }

    .md\:items-center {
        align-items: center;
    }
    
    .md\:justify-between {
        justify-content: space-between;
    }
    
    .md\:block {
        display: block;
    }

    .md\:hidden {
        display: none;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Components & Styling */
.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

.border {
    border-width: 1px;
    border-style: solid;
}

.border-gray-700 {
    border-color: #30363d;
}

.border-2 {
    border-width: 2px;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Colors & Backgrounds */
.bg-card {
    background-color: var(--color-bg-card);
}

.bg-gray-800 {
    background-color: #24292e;
}

.bg-gray-900 {
    background-color: #0c0d12;
}

.bg-gray-800.bg-opacity-50 {
    background-color: rgba(30, 41, 59, 0.5);
}

.bg-gray-900.bg-opacity-50 {
    background-color: rgba(12, 13, 18, 0.5);
}

.bg-neon-teal {
    background-color: var(--color-neon-teal);
}

.bg-teal-800 {
    background-color: #115e59;
}

.bg-fuchsia-600 {
    background-color: #e923e9;
}

.bg-gray-700 {
    background-color: #30363d;
}

.bg-orange-500 {
    background-color: #F97316;
}

.hover\:bg-opacity-80:hover {
    background-color: rgba(0, 229, 229, 0.8);
}

.text-white {
    color: var(--color-text-primary);
}

.text-gray-100 {
    color: var(--color-text-primary);
}

.text-gray-300 {
    color: #c9d1d9;
}

.text-gray-400 {
    color: var(--color-text-secondary);
}

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

.text-gray-900 {
    color: #000000;
}

.text-neon-teal {
    color: var(--color-neon-teal);
}

.hover\:text-white:hover {
    color: var(--color-text-primary);
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-md {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

.font-light {
    font-weight: 300;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

/* Forms & Inputs */
input[type="text"] {
    background-color: var(--color-bg-input);
    border-width: 1px;
    border-style: solid;
    border-color: #30363d;
    border-radius: 9999px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #c9d1d9;
    outline: none;
    transition: box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus {
    box-shadow: 0 0 0 1px var(--color-neon-teal);
}

.pl-10 {
    padding-left: 2.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-1:focus {
    box-shadow: 0 0 0 1px var(--color-neon-teal);
}

/* Images & Media */
img {
    max-width: 100%;
    height: auto;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.w-24 {
    width: 6rem;
}

.h-24 {
    height: 6rem;
}

.object-cover {
    object-fit: cover;
}

.opacity-30 {
    opacity: 0.3;
}

/* Animations & Effects */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.blur-3xl {
    filter: blur(48px);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-border);
    text-align: center;
    max-width: 90%;
    width: 400px;
}

/* Specific Element Styling */
.fa-sm {
    font-size: 0.75rem;
}

.fa-2xl {
    font-size: 1.5rem;
}

.fa-3xl {
    font-size: 2rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.pl-10 {
    padding-left: 2.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.w-16 {
    width: 4rem;
}

.h-10 {
    height: 2.5rem;
}

.w-8 {
    width: 2rem;
}

.h-32 {
    height: 8rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* SVG and Progress Circle specific styles */
#habit-progress-circle {
    stroke-dasharray: 251.2;
    stroke-dashoffset: 62.8;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.h-24 {
    height: 6rem;
}

.w-full {
    width: 100%;
}

/* Add these styles to your existing styles.css file */

/* Login Specific Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 28rem; /* Equivalent to max-w-md */
    margin-left: auto;
    margin-right: auto;
}

.login-card {
    background-color: var(--color-bg-card);
    padding: 2rem; /* Equivalent to p-8 */
    border-radius: 1.5rem; /* Equivalent to rounded-3xl */
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* Equivalent to shadow-xl */
    width: 100%;
    position: relative;
    text-align: center; /* Center the content inside the card */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* space-y-6 */
}

.back-button {
    position: absolute;
    top: 1.5rem; /* top-6 */
    left: 1.5rem; /* left-6 */
    background-color: var(--color-bg-input); /* Use a darker background similar to the image's back button */
    border-radius: 9999px; /* rounded-full */
    padding: 0.75rem; /* p-3 */
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    border: 1px solid var(--color-border);
    transition: background-color 0.2s ease-in-out;
}

.back-button:hover {
    background-color: rgba(30, 41, 59, 0.7); /* Slightly darker on hover */
}

.back-button .fas {
    font-size: 1rem; /* text-lg */
}

.camera-icon {
    width: 5rem; /* w-20 */
    height: 5rem; /* h-20 */
    border-radius: 9999px; /* rounded-full */
    background-color: rgba(0, 229, 229, 0.2); /* A semi-transparent neon teal */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neon-teal);
    font-size: 2.5rem; /* text-5xl */
    margin-top: 1.5rem; /* Adjusted for visual balance */
}

.login-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: var(--color-text-primary);
    text-transform: capitalize;
    margin-bottom: 0.5rem; /* mb-2 */
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

.input-group {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem; /* For spacing between input groups */
}

.input-group .icon {
    position: absolute;
    left: 1rem; /* pl-4 */
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 1rem; /* text-md */
}

.login-input {
    width: 80%;
    background-color: var(--color-bg-input); /* bg-gray-800 with opacity */
    border-radius: 0.75rem; /* rounded-xl */
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
    padding-left: 2.5rem; /* pl-10 to make space for the icon */
    padding-right: 1rem; /* px-4 */
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    outline: none;
    transition: box-shadow 0.2s ease-in-out;
}

.login-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.login-input:focus {
    box-shadow: 0 0 0 1px var(--color-neon-teal);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem; /* text-sm */
    color: var(--color-text-secondary);
    margin-top: 0.5rem; /* mt-2 */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* space-x-2 */
}

.remember-me input[type="checkbox"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.25rem; /* rounded */
    background-color: var(--color-bg-input);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-me input[type="checkbox"]:checked {
    background-color: var(--color-neon-teal);
    border-color: var(--color-neon-teal);
}

.remember-me input[type="checkbox"]:checked::before {
    content: "\2713"; /* Checkmark character */
    color: var(--color-bg-primary); /* Dark text for checkmark */
    font-size: 0.75rem;
    line-height: 1;
}

.forgot-password {
    color: var(--color-neon-teal);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.forgot-password:hover {
    color: #00b3b3; /* A slightly darker teal on hover */
}

.login-button {
    background-color: var(--color-neon-teal);
    color: var(--color-bg-card); /* Dark text on neon teal button */
    font-weight: 700; /* font-bold */
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
    border-radius: 9999px; /* rounded-full */
    border: none;
    cursor: pointer;
    font-size: 1rem; /* text-md */
    margin-top: 1rem; /* mt-4 */
    transition: background-color 0.2s ease-in-out, transform 0.3s ease;
}

.login-button:hover {
    background-color: rgba(0, 229, 229, 0.8); /* hover:bg-opacity-80 */
    transform: scale(1.02); /* Slight scale on hover */
}