
.app-container {
    display: flex; /* enables flex layout */
    flex-direction: column; /* stack elements vertically */
    justify-content: center; /* vertical centering */
    align-items: center; /* horizontal centering */
    min-height: 100vh; /* full viewport height */
    text-align: center; /* center text inside elements */
    gap: 20px; /* space between title and tagline */
}
/* Default Dark Mode */
:root {
    --bg-color: #1a1a2e;
    --text-color: #e0e0e0;
    --title-color: #6c5ce7;
    --tagline-color: #dfe6e9;
    --card-bg: rgba(30,30,50,0.7);
    --accent-color: #6c5ce7;
    --accent-hover: #8c7cf0;
}
/* Default Light Mode */
.light-mode {
    --bg-color: #f5efe6;        
    --text-color: #3a3632;      
    --title-color: #6c5ce7;
    --tagline-color: #6b6460;
    --card-bg: #fffaf4;         
    --accent-color: #6c5ce7;
    --accent-hover: #8c7cf0;
}
body.light-mode {
    background: linear-gradient(
        135deg,
        #f5efe6,
        #f8f1ea,
        #f3e9f2
    ) !important;
}
/* To ensure buttons adapt to light mode */
.light-mode .enter-btn {
    color: white;
}
/* Apply variables */
   body {
    background: var(--bg-color);
    color: var(--text-color);
    margin: 0;

    transition: background 0.4s ease,
                color 0.4s ease;
}

/* Title and Tagline */
h1 {
    font-size: 6rem;
    color: var(--title-color);
    text-shadow: var(--title-shadow);
    margin: 0;
}

.tagline {
    font-size: 1.5rem;
    color: var(--tagline-color);
    text-shadow: var(--tagline-shadow);
    font-style: italic;
    margin: 0;
}
/* Mode Toggle Button */
#mode-toggle {
    position: fixed;   /* stays visible */
    top: 20px;
    right: 20px;

    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: bold;

    color: #fff;
    background-color: #6c5ce7;

    border: none;
    border-radius: 12px;
    cursor: pointer;

    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;

    z-index: 1000;
}
#mode-toggle:hover {
    background-color: #a29bfe;
    transform: translateY(-2px);
}

/* Dashboard Button */
.enter-btn {
    display: inline-block; /* allows padding + sizing */

    margin-top: 30px;
    padding: 14px 28px;

    font-size: 1.0rem;
    font-weight: 600;
    text-decoration: none; /* removes underline */

    color: white;
    background-color: #6c5ce7;
    background-color: var(--accent-color);

    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);

    transition: all 0.3s ease;
}
.enter-btn:hover {
    background-color: #a29bfe;
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}
.enter-btn:active {
    transform: scale(0.97);
}
/* Dashboard Styles */
.dashboard-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    padding: 20px 40px;

    display: flex;
    align-items: center;

    background: var(--bg-color);
}

/* Dashboard Title */
.dashboard-title {
    font-size: 1rem;
    margin: 0;
}
/* Welcome Section */
.welcome-text {
    font-size: 2.7rem;
}
.assignments-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.dashboard-main {
    padding: 120px 40px 40px;
    max-width: 1100px;
    margin: auto;
}

.dashboard-main h2 {
    margin-bottom: 20px;
}
/* Add Task Button */
.add-btn {
    padding: 12px 22px;
    font-size: 1rem;

    background: var(--accent-color);
    color: white;

    border: none;
    border-radius: 10px;

    cursor: pointer;
    margin-bottom: 30px;

    transition: 0.3s;
}

.add-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
/* Task List */
.assessment-container {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}
/* Individual Assessment Card */
.assessment-card {
    padding: 20px;

    background: rgba(255,255,255,0.05);
    border-radius: 12px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.2);

    transition: 0.3s;
}

.assessment-card:hover {
    transform: translateY(-5px);
}


/* Close Button */
#close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}
 
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 20px;
  width: 300px;
  margin: 10% auto;
  border-radius: 12px;
}

/* Delete Button on Assessment Cards */

.assessment-card {
    position: relative;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    background: transparent;
    border: none;

    font-size: 1rem;
    cursor: pointer;

    color: var(--text-color);
    opacity: 0.6;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/*Poof Animation for Deletion*/
 @keyframes poof {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Assessment Status */
.due-soon {
    border: 2px solid #fdcb6e;
    box-shadow: 0 0 15px #fdcb6e55;
}


.due-today {
    border: 2px solid #ff7675;
    box-shadow: 0 0 18px #ff767555;
}


.overdue {
    border: 2px solid #d63031;
    box-shadow: 0 0 20px #d6303155;
}