/* STYLE */
@import "./ctp-latte.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    /* flexbox */
    flex-direction: column;
    /* stack header and main body vertically */
    height: 100vh;
    /* fill entire viewport */
    background-color: white;
    color: var(--ctp-latte-text);
    font-family: "Verdana", sans-serif;
}

button {
    cursor: pointer;
    /* shows that you can click button */
}

#website-name {
    font-size: 27px;
    font-weight: bolder;
    color: #3f3f55;
    font-family: "Monaco";
}

#header-container {
    display: flex;
    flex-direction: row;
    /* items are arranged horizontally in the header */
    justify-content: space-between;
    padding: 10px 20px;
    gap: 20px;
    background-color: #eedafa;
    border-bottom: 1px solid #ddd; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); 
}

#header-title {
    display: flex;
    flex-direction: row;
    width: 50%;
}

#header-options-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 30%;
    gap: 10px;
}

#name-and-term-container{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 25%;
    gap: 18px;
}

#term-container{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    font-size: clamp(15px, 2vw, 18px); /*font-size can shrink*/
    background-color: #8d9efa;
    padding: 5px 8px;
    border-radius: 5px;
    color: white;
}

#term {
    height: 26px;
    background-color: white;
    border-radius: 3px;
    font-size: clamp(12px, 1.5vw, 15px); /*font-size can shrink*/
}

#term:hover{
    cursor: pointer; 
}

#restart-button, #export-button, #help-button{
    padding: 5px 12px;
    font-size: clamp(15px, 2vw, 18px); /*font-size can shrink*/
    border-radius: 6px;
    border: none;
    background-color: #8d9efa;
    color: white;
}

#restart-button:hover, #export-button:hover, #help-button:hover{
    background-color: #6b7fe0;;
}

#help-content{
    font-size: 13px;
    overflow-y: auto;
}

#below-header {
    display: flex;
    flex: 1;
    overflow: hidden; /* keep horizontal hidden */
    overflow-y: auto; /* allow vertical scroll */
    flex-direction: row;
    height: calc(100% - HEADER_HEIGHT); /* make sure it fills remaining viewport */
}

#below-header {
    display: flex;
    flex: 1;
    /* fill remaining space below the header */
    flex-direction: row;
}

#divider {
    flex: 0 0 4px; /* divider width always stays 4px */
    min-width: 5px;
    background-color: black;
    position: relative;
    z-index: 9999;     /* ensures it stays visible */
    border-left: 1px solid #888;
    border-right: 1px solid #888;
    cursor: col-resize;
}

#divider:hover {
    background-color: #717171;
}

#divider-button {
    position: absolute;
    top: 50%;
    /* center vertically on the divider line */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    /* center button itself on the divider line */
    background-color: #f0f0f0;
    border: 1px solid #aaa;
    border-radius: 2px;
    /* rounded edge */
    padding: 17px 8px;
    font-size: 12px;
    cursor: col-resize;
}

#divider-button:hover {
    background-color: #d6a6f3;
    /* highlight divider when hover over it */
}

#course-pane,
#search-pane {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    flex: 1;
    min-width: 0;
}

#search-pane{
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    height: 100%;
}

#search-pane,
#course-search-container,
#course-pane {
    min-height: 0;  
}

/* INTRO VIEW STYLING */
#intro-view {
    background: #fdf6ec;             
    border-radius: 8px;
    padding: 15px 12px;
    margin: 12px;
    font-family: "Verdana", sans-serif;
    color: var(--ctp-latte-text);
    line-height: 1.35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;                         
}

#intro-view h2 {
    font-size: 1.4em;
    margin-bottom: 4px;
    color: #3f3f55;                  
    text-align: center;
}

#intro-view h4 {
    font-size: 0.95em;
    margin-bottom: 6px;
    text-align: center;
    color: #545454;                   
}

#intro-view p {
    margin: 4px 0;
    padding: 6px 10px;
    border-left: 4px solid #8d9efa;  
    background: rgba(141, 158, 250, 0.08); 
    border-radius: 4px;
    font-size: 0.88em;
}


/* COURSE OVERVIEW SECTION */

#course-pane {
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

#intro-view, #course-list-content, #calendar-view {
    display: flex;
    flex-direction: column;
    padding: 10px; 
}

#course-list-content {
    padding: 20px;
}

#calendar-view{
    overflow-y: auto;
}

.calendar-grid {
    margin: 10px 0px;
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr); /* 60px times and 7 equal day columns */
    grid-template-rows: 35px repeat(26, 35px); /* one header + 27 half-hour slots */
    width: 100%;
    height: 75%;
    overflow-y: auto;
    border: 2px solid #545454;
    border-collapse: collapse;
}

.calendar-times {
    display: flex;
    flex-direction: column;
    /* border-right: 1px solid #ccc; */
    border-right: 1px solid #aaa;
    grid-column: 1 / 2;
    grid-row: 1 / -1;
}

.time-slot {
    height: 30px; /* each time slot row is 30px tall (30 min increments)*/
    border-bottom: 1px solid #ccc;
    text-align: right;
    padding-right: 5px;
    box-sizing: border-box;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* border-left: 1px solid #ccc; */
    border-bottom: 2px solid #aaa;
}

.day-column {
    text-align: center;
    font-size: 20px;
    padding-top: 5px;
    position: relative;
    width: 100%;
    height: 100%;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #ccc;
    box-sizing: border-box;
    grid-row: 1 / -1;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 29px,
        #e5e5e5 30px
    );
    box-sizing: border-box; /* include border in total width */
}
.day-column:nth-child(2) { grid-column: 2; } /* MON */
.day-column:nth-child(3) { grid-column: 3; } /* TUES */
.day-column:nth-child(4) { grid-column: 4; } /* WED */
.day-column:nth-child(5) { grid-column: 5; } /* THURS */
.day-column:nth-child(6) { grid-column: 6; } /* FRI */
.day-column:nth-child(7) { grid-column: 7; } /* SAT */
.day-column:nth-child(8) { grid-column: 8; } /* SUN */

#calendar-course-time{
  font-size: 15px;
  color: #333;
  background: transparent;
}

#calendar-course-name{
  display: block;
  font-size: 16px;
  color: black;
  background: transparent;
}

#calendar-distance-courses {
    margin-top: 10px;
    padding: 10px;
    border: 4px double #999;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

#distance-course-title {
    font-size: 20px;
    font-weight: bold;
    background-color: white;
}

#calendar-distance-courses .course-block {
    width: auto;
    display: inline-block;
    margin: 5px;
    width: 300px;
}

/* SEARCH FIELDS SECTION */

#search-fields-container {
    display: flex;
    flex-direction: column;
    gap: 12px;   /* space between rows */
    padding: 5px 10px;
}

#search-fields-container > div.search-form {
    display: flex;
    align-items: flex-start; 
    gap: 15px;
    flex-wrap: wrap;
}

/* Regular row: label + input */
#search-fields-container > div.search-form:not(:has(details)) {
    align-items: center; /* vertical center the label & input */
}

/* Rows with details remain flex-start to avoid stretching the form */
#search-fields-container > div.search-form:has(details) {
    align-items: flex-start;
}

#search-fields-container label {
    width: 130px;  /* fixed width for all labels to align */
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    margin-right: 8px; /* space between label and input */
}

#search-fields-container input,
#search-fields-container select {
    flex: 0 0 150px; 
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

#search-fields-container details {
    width: 100%; /* occupy full row */
    display: block;
}

#search-fields-container details summary {
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.9rem;
    padding-left: 10px;
}

#search-fields-container details div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;   
    margin-bottom: 5px;
    flex-wrap: wrap;
    padding-left: 15px;
}

#search-fields-container details label {
    width: 90px;
    text-align: left;
    font-weight: 400;
    font-size: 0.85rem;
}

#search-fields-container details input[type="time"],
#search-fields-container details input[type="checkbox"],
#search-fields-container details input[type="text"] {
    flex: 0 0 120px; 
}

.greyed-out {
    color: rgb(200, 193, 201);
}

#department:hover, #level3:hover{
    cursor: pointer;
}


#search-fields-container input.greyed-out:disabled,
#search-fields-container input[disabled] {
    cursor: not-allowed; /* indicates it cannot be interacted with */
}

div.section-heading h2 {
    text-align: center;
    color: #3f3f55;
    font-size: 1.6em;
}

.search-heading, .course-overview-heading{
    padding: 20px 10px;
}

#divider-search-notescrn {
    min-height: 1.5px;
    background: rgba(0, 0, 0, 0.1);
    cursor: ns-resize;
}

/* NOTES AND CRNS SECTION */
#below-search-container {
    display: flex;
    flex: 0 0 250px; /* Gives a default height of 250px */
    min-height: 0;  
    display: flex;
    flex-direction: row;
    width: 100%;
    position: relative;
    z-index: 10;
}

#notes-container,
#crn-container {
    flex: 1 1 auto; /* expand to fill parent */
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
    overflow: auto;  /* scroll if content overflows */
    border: 1px solid black;
    min-height: 0;
    background-color: #f4f2f5;
}

#notes-container {
    border-right: none;
    border-left: none;
}

/* #notes-container:hover,
#crn-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
} */

#notes-content,
#crn-content {
    flex: 1;
    overflow: auto;
    overflow-y: scroll;
    padding: 5px;
    bottom: 0;
    left: 0;
    right: 0;
    outline: none;
    min-height: 0; 
}

#notes-content {
    resize: none;
    border-width: 0px;
    background-color: #f4f2f5;
    padding: 0px 15px;
}

#notes-content:disabled {
    background-color: #f0f0f0;
    color: #555;
}


/* Notes Edit/Save Buttons */
#notes-container {
    position: relative; /* enables absolute positioning of buttons */
}

/* Notes Edit/Save Buttons */
#edit-note-btn,
#save-note-btn {
    position: absolute;      
    top: 8px;                
    padding: 4px 10px;     
    font-size: 14px;        
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 10;            
}

/* Edit Button (Blue, left) */
#edit-note-btn {
    left: 8px;  /* position near left */
    background-color: #8d9efa;
    color: white;
}
#edit-note-btn:hover {
    background-color: #6b7fe0;
}

/* Save Button (Green, right) */
#save-note-btn {
    right: 8px;  /* position near right */
    background-color: #4cd964;
    color: white;
}
#save-note-btn:hover {
    background-color: #3cbf50;
}


#h-divider {
    min-width: 1.5px;
    cursor: ew-resize;
    background: rgba(0, 0, 0, 0.1);
}

.notes-crn-title {
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    text-align: center;
    color: #3f3f55;
    font-size: 1.3em;
}

#crn-list,
#notes-list {
    margin-left: 5px;
    margin-right: 3px;
    margin-top: 2.5px;
    margin-bottom: 5px;
}

/* COURSE PANE SECTION*/
#course-pane {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    height: 100%;

    box-sizing: border-box;
    /*hide the left pane when it shrinks to 0% width*/
}

#course-pane-content {
    padding: 20px;
}

.course-days-container-header span {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
}

.course-days-container hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 6px 0 12px 0;
}

#crn-list, #notes-list {
    margin-left: 2%;
    margin-right: 1%;
    margin-top: 1%;
    margin-bottom: 2%;
}

.course-block {
    position: relative;
    background: #f8f8f8;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

/* course name/title inside blocks */
.course-block #calendar-course-name {
    font-size: 11px;
}

/* course time inside blocks */
.course-block #calendar-course-time {
    margin-top: 3px;
    font-size: 11px;
    color: #333;
}

/* DELETE BUTTON */
.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    border: none;
    color: white;
    padding: 4px 7px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

/* EXPAND ARROW */
.expand-btn {
    position: absolute;
    top: 8px;
    right: 40px; /* slightly left of delete button */
    background: #4ea3f5;   /* blue, matching vibrant style but not red */
    border: none;
    color: white;
    padding: 4px 7px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.expand-btn:hover {
    background: #3b8edc;   /* darker blue on hover */
}
.course-block.expanded .expand-btn {
    transform: rotate(180deg);
}


.course-block .course-details {
    max-height: 400px;  /* just the scrollable part */
    overflow-y: auto;
}

.course-block.expanded .course-details {
    max-height: 500px;
}

/* HIDDEN DETAILS */
.course-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    margin-top: 10px;
}


.course-actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.course-actions button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn, .color-btn {
    background: #8d9efa;
    color: white;
    font-weight: bold;
}

.edit-btn:hover, .color-btn:hover{
    cursor: pointer;
    background-color: #6b7fe0;;
}

#course-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    align-content: flex-start;
    padding: 10px;
    flex: 1;  /* take available space */
    overflow-y: auto;
    /* min-height: 0; */
    padding-bottom: 20px;
    min-height: 0;  
    position: relative;
    z-index: 1;
}

#course-search-results .card {
    display: none; /* hidden by default until shown*/
}

.card {
    border: 1px solid black;
    padding: .5rem;
    display: flex; 
    flex-direction: column;  
    width: 245px;
    min-height: 240px;
    height: auto; /* allow vertical expansion */
    overflow-wrap: break-word; /* ensure long words wrap */

    position: relative;
}

.info-course-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;

    background-color: #8d9efa;
    font-weight: bold;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.info-course-btn:hover {
    background-color: #6b7fe0;
}

.modal-content {
    position: relative; /* allows absolute positioning inside */
    width: 600px;
    max-width: 95%;
    padding: 24px;
    border-radius: 12px;
    background: white;
}

#close-course-info {
    position: absolute;
    top: 10px;
    right: 10px;

    background-color: #ff6b6b;  /* red button */
    color: white;
    padding: 3px 5px;
    border-radius: 3px;
    align-self: flex-end;
    font-size: 18px;
    border:none;
}

#close-course-info:hover {
    background-color: #e15d5d; /* darker red on hover */
}

#course-info-modal .modal-content {
    width: 700px;
    max-width: 95%;
}

/* Make the card header area use flexbox for inline elements */
.card .subject,
.card .course-number {
    display: inline-block;
}

.card > .header {
    margin-bottom: .25rem;
    
}

.card > .body {
    font-size: .8rem;
    color: #333;
}

/* Allows us to hide content */
.hide {
    display: none;
}

/* Course card styling */
.course-header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.subject,
.course-number {
    display: inline-block;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

.title {
    font-size: 1rem;
    margin: 0.25rem 0;
}

.instructor,
.schedule {
    font-size: 0.9rem;
    color: #4C4F69;
    font-family: "Verdana", sans-serif;
    margin: 0.1rem 0;
}

.card button.add-course-btn {
    margin-top: 0.5rem;
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem;
    font-weight: bold;
    background-color: #8d9efa;
    color: white;
    border: none;
    border-radius: 4px;
    margin-top: auto; /*keeps button at bottom*/
}

.card button.add-course-btn:hover{
    background-color: #6b7fe0;
}

 .search-buttons {
    display: flex;
    justify-content: center; 
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.search-button {
    flex: 2;        
    background-color: #8d9efa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
}

.clear-button {
    flex: 1;  
    background-color: #b0b0b0; 
    border: none;
    color: white;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
}

.search-button:hover {
    background-color: #6b7fe0;
}

.clear-button:hover {
    background-color: #8c8c8c; /* darker grey on hover */
}

#search-fields-container details div input[type="checkbox"] {
    width: auto;   /* don't stretch checkbox */
    margin-left: 0;
}

/* ------- Search Results / mode switching ------- */

/* Default: form visible, results hidden (cards still hidden individually) */
#course-search-results { display: none; }

/* When container has .results-mode: hide form, show results area */
#course-search-container.results-mode #search-fields-container {
  display: none !important; /* hide the form area when in results mode */
}

#course-search-container.results-mode #course-search-results {
  display: flex !important;  /* results area displayed as flex wrap */
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 10px;
  padding-left: 25px;
  justify-content: flex-start;
}

/* cards default hidden; JS has .show to reveal them */
#course-search-results .card { display: none; }

/* reveal a card, keep card layout controlled by CSS */
#course-search-results .card.show {
  display: flex; /* matches your .card rules (flex column) */
  flex-direction: column;
}

#course-search-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto; /* Allows the search area to fill the remaining space */
    overflow-y: auto;
    overflow-x: hidden;
}

/* wrapper for centering form */
#search-form-wrapper {
    display: flex;
    justify-content: center; /* centers the form horizontally */
    width: 100%;
    margin-bottom: 10px; /* optional spacing before results */
}

#course-search-container,
#below-search-container {
    flex-shrink: 1;    
    min-height: 0;     
    overflow-y: auto;  
}

/* Back button styling */
#back-button {
    display: none;
    padding: 5px 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    background-color: #b0b0b0; /* grey */
    color: white;
    cursor: pointer;
    margin-bottom: 10px; /* space from form */
    align-self: flex-start; /* keeps it left-aligned */
    margin: 10px;
}

#back-button:hover {
    background-color: #8c8c8c; /* darker grey on hover */
}

/* Blur background when modal is open */
body.modal-open #main-content {
    filter: blur(4px);
    pointer-events: none;
}

/* Modal container */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* higher than any part of your UI */
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
}

.modal-content input {
    padding: 8px;
    width: 100%;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 320px;
}
.danger {
    background: red;
    color: white;
}

/* Restart Modal Buttons */
#confirm-restart,
#cancel-restart {
    padding: 4px 10px;  /* smaller padding */
    font-size: 16px;
    border-radius: 6px; /* slightly smaller rounded corners */
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    margin-top: 8px;
}

/* Confirm Restart Button (RED) */
#confirm-restart {
    background-color: #ff6b6b; /* red button */
    color: white;
}
#confirm-restart:hover {
    background-color: #e15d5d;  /* darker red on hover */
}

/* Cancel Restart Button (GREY) */
#cancel-restart {
    background-color: #b0b0b0;/* grey button */
    color: white;
    margin-left: 10px;
}
#cancel-restart:hover {
    background-color: #8c8c8c; /* darker grey on hover */
}

.modal-buttons {
    display: flex;
    flex-direction: row;/* horizontal alignment */
    justify-content: space-between;
    gap: 8px;  /* smaller gap between buttons */
}

/* Help modal */
.help-box {
    width: 70%;
    max-height: 80%;
    font-size: 1.05em;
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.help-box h2 {
    color: #3f3f55;
    text-align: center;
    margin-bottom: 5px;
}

.help-box h4 {
    color: #545454;
    text-align: center;
    margin-bottom: 15px;
}

.help-box ul {
    padding-left: 20px; 
    margin-top: 10px; 
    margin-bottom: 10px;
}

.help-box p, .help-box li{
    margin: 8px 0;
}

#close-help-modal {
    background-color: #ff6b6b;  /* red button */
    color: white;
    padding: 3px 5px;
    border-radius: 3px;
    align-self: flex-end;
    font-size: 18px;
    border:none;
    position: absolute;
    top: 10px; /* Distance from the top of the box */
    right: 15px; /* Distance from the right of the box */
    z-index: 10; /* Ensures it sits above content */
}
#close-help-modal:hover {
    background-color: #e15d5d;  /* darker red on hover */
}

/* Edit Save Button */
#save-edit {
    padding: 5px 12px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background-color: #8d9efa;
    color: white;
    cursor: pointer;
}
#save-edit:hover {
    background-color: #6b7fe0;
}

/* Edit Cancel Button */
#cancel-edit {
    padding: 5px 12px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background-color: #ff6b6b;
    color: white;
    cursor: pointer;
}
#cancel-edit:hover {
    background-color:#e15d5d;
}

/* Toast Notification Styles */
#toast-container {
    position: fixed;
    top: 20px; /* Position from the top */
    right: 20px; /* Position from the right */
    z-index: 10001; /* Above modals */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0; /* Start hidden */
    transform: translateX(100%); /* Start off-screen */
    transition: opacity 0.3s ease-in, transform 0.3s ease-in;
    min-width: 250px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background-color: #4CAF50; 
}

.toast.error {
    background-color: #f44336; 
}
