:root {
    --background: #FFFFFF;
    --foreground: #1A1F2C;
    --green: #97e192;
    --navy-light: #F5F5F7;
    --navy: #1A1F2C;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

 body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    line-height: 1.5;
  }

/*make h2 and h3 smaller*/
h2, h3 {
    font-size: 1.5em;
}

/*create a session with time, sessionname, resourcename, employeename and number of bookings left*/
/*same as class-card glass-card in ./app/css/app_light.css*/

.class-card {
    /*old session;*/

    padding: 1rem;
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: var(--navy);
    cursor: pointer;
    animation: slideUp 0.3s ease-out;
    transition: background-color 0.3s ease;
}

.class-card.not-bookable {
    background-color: rgba(239, 68, 68, 0.1); /* Light red */
  }
  
  .class-card.few-spots {
    background-color: rgba(245, 158, 11, 0.1); /* Light orange */
  }
  
  .class-card.my-booking {
    background-color: rgba(16, 185, 129, 0.1); /* Light green */
  }

.glass-card {
    background-color: var(--navy-light);
    border: 1px solid var(--gray-300);
    border-radius: 1rem;
}

.class-image {
    width: 8rem;
    height: 8rem;
    border-radius: 0.75rem;
    overflow: hidden;
  }
  
  .class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .class-content {
    flex: 1;
  }
  
  .class-header {
    display: flex;
    margin-bottom: 0.75rem;
  }
  
  .class-time {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .class-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-left: 1rem;
  }
  
  .class-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--gray-400);
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .room {
    font-size: 0.875rem;
    color: var(--gray-400);
  }
  
  .spots-available {
    margin-top: 1rem;
    color: var(--navy);
  }
  
  .spots-available.few {
    color: #F59E0B;
  }
  
  .spots-available.none {
    color: #EF4444;
  }
  
  .spots-available.booked {
    color: #10B981;
  }

/*add hover effect on session for sessionpopup and calendarbookingpopup*/
#sessionpopup .session:hover, #cancelbookingpopup .session:hover {
    background-color: inherit;
    color: inherit;
    border-top: inherit;
    border-bottom: inherit;
    cursor: inherit;
}

#sessionpopup .session, #cancelbookingpopup .session {
    border-top: inherit;
    border-bottom: inherit;
}

/*Same as classes-list in ./app/css/app_light.css*/
#sessions {
    /*
    margin-top: 180px;
    margin-bottom: 100px;
    width: 100%;
    background-color: #343a40;
    margin-left: 0px;
    margin-right: 0px;*/
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.row {
    display: flex;
}

/*create a session with time, sessionname, resourcename, employeename and number of bookings left*/
.session_left {
    position: relative;
    width: 200px;
    border-radius: 5px;
    min-height: 150px;
    min-width: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-color: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    @media (max-width: 600px) {
        width: 150px;
        min-width: 150px;
    }
}

.session_time {
    position: absolute;
    top: -1;
    left: 10;
    background-color: darkgreen;
    color: white;
    border-bottom-right-radius: 5px;
    border-color: rgb(34, 32, 32);
    border-width: thin;
    border-style: solid;
    padding: 5px;
    font-weight: bold;
}

.booked {
    background-color: darkred;
}

.starttime, .endtime {
    text-align: center;
}

.session_info {
    padding-left: 15px;
    flex-grow: 1;
}

.sessionname, .resourcename, .employeename {
    text-align: left;
}

.numberofbookingsleft span {
    text-align: left;
}

.btn-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90px;
    font-weight: bold;

    @media (max-width: 600px) {
        font-size: 10px;
        font-weight: bold;
    }
}

.btn-a-date {
    padding-top: 5px;
    height: 30px;
    font-size: 20px;
    font-weight: bold;

    @media (max-width: 600px) {
        font-size: 10px;
        font-weight: bold;
    }
}

.btn-date {
    height: 30px;
}

.btn-info {
    height: 60px;
    font-weight: bold;
    font-size: 20px;

    @media (max-width: 600px) {
        font-size: 20px;
        font-weight: bold;
    }
}

.infofield {
    color: #fff;
    background-color: #0000;
    border-color: black;
    height: 60px;
    font-weight: bold;
    text-align: center;

    @media (max-width: 600px) {
        font-size: 11px;
        font-weight: bold;
    }
}

/*set the website in boostrap dark theme*/
#dayview_header {
    background-color: #343a40;
    color: white;
    position: fixed;
    top: 30px;
    width: 100%;
    z-index: 1000;
}

#dayview_header_date_weekdays {
    display: flex;
    justify-content: space-between;
}

#dayview_header_date_weekdays a {
    flex-grow: 1;
    text-align: center;
}

/*set the footer in boostrap dark theme*/
.footer {
    background-color: #343a40;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.footer-icons {
    display: flex;
    justify-content: space-between;
}

.footer-icons a {
    flex-grow: 1;
    text-align: center;
}

.btn-info-footer {
    height: 60px;
    font-size: 12px;

    @media (max-width: 600px) {
        font-size: 10px;
    }
}

/*override btn-primary so its white text on dark background*/
.btn-primary {
    color: #fff;
    background-color: #0000;
    border-color: black;
}

.filter {
    background-color: #007bff;
    color: white;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
}

.alert {
    display: inline-block;
    width: auto;
    padding: 2px;
    font-weight: bold;
}

.alert-warning {
    background-color: #ffc107;
    color: black;
}

.alert-success {
    background-color: #28a745;
    color: white;
}

.alert-info {
    background-color: #17a2b8;
    color: white;
}

.circle {
    min-height: 10px;
    height: 10px;
    width: 10px;
    background-color: #17a2b8;
    border-radius: 50%;
}

.no_circle {
    min-height: 10px;
    height: 10px;
    width: 10px;
}

.modal-dialog-fullscreen {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.modal-content-fullscreen {
    height: 100%;
    border-radius: 0;
}

.modal-content {
    background-color: #343a40;
    color: white;
}

/*override close button in modal ligth color*/
.close {
    color: white;
}

/* Flexbox for resourcename and employeename */
.session_info .row {
    display: flex;
    flex-wrap: wrap;
}

.session_info .resourcename, .session_info .employeename {
    flex: 1;
    margin-right: 10px;
}

/* Responsive styles for smaller screens */
@media (max-width: 379px) {
    .btn-a-date, .btn-date {
        font-size: 10px;
        padding: 5px;
    }

    #dayview_header_date_weekdays a {
        padding: 5px;
    }
}