* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans',sans-serif;
}

body{
    margin: 0;
    padding: 0;
    background-color: white;
    background-size: cover;
    background-position: center;
}
 
li {
    list-style:none;
}

a {
    text-decoration: none;
    color:black;
}

a:hover {
    color:grey;
}

/* HEADER */
header{
    position: relative;
    padding:0;
}

.navbar {
    width:90%;
    height:60px;
    background-color:rgb(121, 211, 121);
    margin:0 auto;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content:space-between;
    position:fixed;
    margin-left:5%;
    border:5px;
    top:0;
    z-index: 5;
}

.navbar .logo a {
    font-size: 1.5rem ;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    gap: 2rem;
}

.navbar .toggle_btn {
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    display:none;
    padding: 0.5rem 1rem;
}

.action_btn{
    background-color:#336666;
    color:white;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.action_btn:hover{
    scale: 1.05;
    color:grey;
}

.action_btn:active{
    scale:0.95;
}

.user_btn{
    background-color:#336666;
    color:white;
    justify-content:left;
    align-items: center;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.user_btn:hover{
    scale: 1.05;
    color:grey;
}

.user_btn:active{
    scale:0.95;
}

.user_portal {
    display: flex;
    gap: 2rem;
}

/* DROPDOWN MENU */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 0px;
    height: 0;
    width: 300px;
    background-color:rgb(121, 211, 121);
    border-radius: 10px;
    overflow:hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.dropdown_menu.open {
    height: auto;
}

.dropdown_menu li{
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .action_btn{
    width: 100%;
    display: flex;
    justify-content: center;
}

/* USER MENU */
.user_menu {
    display:block;
    position: absolute;
    right: 25rem;
    top: 80px;
    height: 0;
    width: 100px;
    background-color:rgb(121, 211, 121);
    border-color: black;
    border-width: 1px;
    border-radius: 10px;
    overflow:hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 11;
}

.user_menu.open {
    height: 75px;
}

.user_menu li{
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user_menu .action_btn{
    width: 100%;
    display: flex;
    justify-content: center;
}


/* HERO SECTION */
section#hero {
    height: auto;
    min-height: 75px;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    background-image: url(../images/bannermedv3.png);
    background-size: cover;
    color:white;
    margin-top: 50px;
    border: 2px;
    border-radius: 20px;
}

#hero h1{
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero h2{
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#hero .action_btn{
    width: 25%;
    display: flex;
    justify-content: center;
    z-index: 4;
}

#hero a {
    align-items: center;
    display: flex;
    justify-content: center;
}

/* OTHER SECTIONS */
section#goals {
    text-align: justify;
    padding: 10px;
    border:solid 2px #78e99e;
    gap: 2rem;  
}

section#intro{
    text-align: justify;
    padding: 10px;
    border:solid 2px #53aaaa;
}

section#services{
    text-align: justify;
    padding: 10px;
    border: solid 2px rgb(235, 202, 17);
    padding: 10px;
}

section#elements {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background-color:#336666;
    border:2px;
    border-radius: 20px;
    margin-top:10px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.nav-toggle-btn {
    background-color: #336666;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 700px;
}

.nav-toggle-btn:hover {
    background-color: #2a5555;
    transform: scale(1.02);
}

.nav-toggle-btn:active {
    transform: scale(0.98);
}

/* RESPOSIVE DESIGN */
@media (max-width: 980px) {
    .navbar .links,
    .navbar .action_btn {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
}

/* Responsive Design for Navigation */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 10px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .left-div-2 {
        position: relative;
        width: 100% !important; /* Force full width */
        max-width: none; /* Remove any max-width constraints */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 0;
        margin-left: 0; /* Remove any left margin */
        margin-right: 0; /* Remove any right margin */
        background-color: white;
        border: solid 2px #78e99e;
        border-radius: 20px;
        box-sizing: border-box; /* Ensure padding is included in width */
    }
    
    .left-div-2.mobile-open {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
        margin-bottom: 20px;
        padding: 20px;
        width: 100% !important; /* Ensure full width when open */
    }
    
    .right-div-2 {
        width: 100% !important; /* Force full width */
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    /* Ensure navigation menu appears above content */
    .left-div-2.mobile-open {
        position: relative;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Remove any flex constraints on container children */
    .container > div {
        flex: none;
    }
}



/* Animation for smooth transitions */
@media (max-width: 768px) {
    .left-div-2 h3,
    .left-div-2 ul,
    .left-div-2 li {
        transition: opacity 0.3s ease-in-out;
    }
    
    .left-div-2:not(.mobile-open) h3,
    .left-div-2:not(.mobile-open) ul,
    .left-div-2:not(.mobile-open) li {
        opacity: 0;
    }
    
    .left-div-2.mobile-open h3,
    .left-div-2.mobile-open ul,
    .left-div-2.mobile-open li {
        opacity: 1;
    }
}

button.green{
    background-color:#16a700;
    color:white;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    max-width: 400px;
}

main{
    margin-left:5%;
    height:100%;
    width:90%;
    padding:0px 10px;
    margin-top: 75px;
    margin-bottom: 100px;     
}

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
  }
  
  .gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
  }
  
  .gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
  }
  
  .gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
  }
  
  .gsi-material-button .gsi-material-button-state {
    -webkit-transition: opacity .218s;
    transition: opacity .218s;
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
  }
  
  .gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
  }
  
  .gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
  }
  
  .gsi-material-button:not(:disabled):active .gsi-material-button-state, 
  .gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #303030;
    opacity: 12%;
  }
  
  .gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  }
  
  .gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #303030;
    opacity: 8%;
  }

  .container {
    display: flex;
    min-height: 400px;
    margin: 20px;
  }
  
  .left-div,
  .left-div-2 {
    padding: 20px;
    width: 50%;
    border: solid 2px #78e99e;
    border-radius: 20px;
  }

  .left-div-2 {
    width: 25%;
    border-radius: 20px;
  }

  .left-div-2 li h4 a {
    color:#336666;
  }
  
  .right-div,
  .right-div-2{
    width: 50%;
    padding: 20px;
    border: solid 2px #53aaaa;
    border-radius: 20px;
    
  }

  .right-div-2 {
    width: 75%;
    border-radius: 20px;
  }

  #calendar {
            max-width: 900px;
            margin: 40px auto;
            padding: 10px;
        }

  form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

    form label {
        font-weight: bold;
    }

    form input[type="text"],
    form input[type="email"],
    form input[type="password"],
    form input[type="date"],            
    form input[type="number"],
    form input[type="tel"],
    form input[type="file"],
    form input[type="datetime-local"],
    form select {
        padding: 10px;
        border: 1px solid black;
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
    }

    form input[type='checkbox'],
    form input[type='radio'] {
        width: 20px;
        height: 20px;
    }

    form textarea {
        padding: 10px;
        border: 1px solid black;
        border-radius: 20px;
        width: 100%;
        max-width: 400px;
        height: 200px;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
    }
    th, td {
        padding: 10px;
        border: 2px;
        text-align: left;
        box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    
    }  

    footer {
        background-color: rgb(121, 211, 121);
        color: black;
        text-align: center;
        padding: 20px;
        position:fixed;
        bottom: 0;
        width:90%;
        height:60px;
        align-items: center;
        justify-content: center;
        margin-left:5%;
        border:5px;
        border-radius: 20px;
        margin-top: 20px;
    }

    /* Calendar Responsive Styles - Added after existing styles */
.calendar-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

#calendar {
    min-width: 100%;
    background-color: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Calendar Header Responsive */
.fc-header-toolbar {
    flex-wrap: wrap !important;
    gap: 10px;
}

.fc-toolbar-chunk {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Calendar Button Styles - Only target FullCalendar buttons */
.fc-button {
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    border: none !important;
    background-color: #336666 !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.fc-button:hover {
    background-color: #2a5555 !important;
    transform: scale(1.02) !important;
}

.fc-button:disabled {
    background-color: #ccc !important;
    opacity: 0.6 !important;
}

.fc-button-primary:not(:disabled):active,
.fc-button-primary:not(:disabled).fc-button-active {
    background-color: #1a3333 !important;
}

/* Calendar Title */
.fc-toolbar-title {
    font-size: 1.5rem !important;
    color: #336666 !important;
    font-weight: bold !important;
}

/* Calendar Events */
.fc-event {
    border: none !important;
    background-color: #78e99e !important;
    color: #1a3333 !important;
    border-radius: 8px !important;
    padding: 2px 6px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.fc-event:hover {
    background-color: #53aaaa !important;
    color: white !important;
    transform: scale(1.02) !important;
}

/* Calendar Grid */
.fc-day-today {
    background-color: rgba(120, 233, 158, 0.2) !important;
}

.fc-daygrid-day {
    border-color: #e0e0e0 !important;
}

.fc-col-header-cell {
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    color: #336666 !important;
}

/* Keep original green button styling and enhance it */
button.green {
    background-color: #16a700; /* Keep original green */
    color: white;
    padding: 12px 24px;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(22, 167, 0, 0.3);
    max-width: 400px;
}

button.green:hover {
    background-color: #138a00; /* Darker green on hover */
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(19, 138, 0, 0.4);
}

button.green:active {
    transform: scale(0.98);
}

/* Mobile Calendar Responsive Styles */
@media (max-width: 768px) {
    /* Calendar specific mobile styles */
    #calendar {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .fc-toolbar {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .fc-toolbar-chunk {
        justify-content: center;
        width: 100%;
    }
    
    .fc-toolbar-title {
        font-size: 1.3rem !important;
        text-align: center;
        order: -1;
        margin-bottom: 10px;
    }
    
    .fc-button {
        padding: 10px 8px !important;
        font-size: 0.8rem !important;
        min-width: 60px;
    }
    
    .fc-button-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* Stack view buttons vertically on very small screens */
    .fc-right .fc-button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .fc-right .fc-button {
        width: 100%;
        margin: 2px 0;
    }
    
    /* Calendar Grid Adjustments */
    .fc-daygrid-day-number {
        font-size: 0.9rem !important;
        padding: 4px !important;
    }
    
    .fc-event {
        font-size: 0.8rem !important;
        padding: 1px 4px !important;
        margin: 1px 0 !important;
    }
    
    .fc-event-title {
        font-size: 0.75rem !important;
    }
    
    /* Better spacing for day view */
    .fc-timegrid-slot {
        height: 2em !important;
    }
    
    .fc-timegrid-slot-label {
        font-size: 0.8rem !important;
    }
    
    /* Keep green button responsive but maintain color */
    button.green {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        background-color: #16a700; /* Ensure green color is maintained */
    }
    
    button.green:hover {
        background-color: #138a00; /* Maintain hover color */
    }
}

@media (max-width: 480px) {
    .calendar-container {
        margin: 5px;
        overflow-x: auto;
    }
    
    #calendar {
        min-width: 320px;
        padding: 8px;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem !important;
    }
    
    .fc-button {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
        min-width: 50px;
    }
    
    /* Hide some buttons on very small screens */
    .fc-listWeek-button {
        display: none !important;
    }
    
    /* Simplify day grid for tiny screens */
    .fc-daygrid-day-number {
        font-size: 0.8rem !important;
    }
    
    .fc-col-header-cell {
        font-size: 0.8rem !important;
        padding: 4px 2px !important;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .fc-toolbar {
        flex-direction: row !important;
    }
    
    .fc-toolbar-chunk {
        width: auto;
    }
    
    .fc-toolbar-title {
        order: 0;
        margin-bottom: 0;
    }
}








