/* styles.css */

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

/* Header styles */
header {
    background: #35424a;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

header nav {
    margin: 10px 0;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
}

header nav a:hover {
    background: #e8491d;
}

/* Main content styles */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Responsive layout */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header nav a {
        display: block;
        margin: 5px 0;
    }
}

/* Footer styles */
footer {
    background: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Button styles */
.button {
    display: inline-block;
    font-size: 16px;
    color: #ffffff;
    background: #e8491d;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background: #35424a;
}

main section.hero {
    background-color:olive;
}

.toast {
    left: 50%;
    position: fixed;
    transform: translate(-50%, 0px);
    z-index: 9999;
}

#mainContent {
    background-color:#fff;
    padding:10px;
}

.nav-item .nav-link {
    border: 1px solid #ddd;
}

#busyOverlay {
     position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999; /* stays on top */
      flex-direction: column;
}

.busySpinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3; /* Light grey */
    border-top: 6px solid #3498db; /* Blue */
    border-radius: 50%;
    animation: busySpin 1s linear infinite;
}

.busyText {
    font-weight: bold;
    color:#fff;
}

/* Spinner animation */
@keyframes busySpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav-tabs {
    white-space: nowrap; /* Prevent wrapping */
    display: flex;
    flex-wrap: nowrap; 
}

.nav-item {
    flex-shrink: 0; /* Prevent items from shrinking */
}

@media (max-width: 720px) {

    .nav-link {
        padding:5px 5px;
    }

    .nav-tabs {
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y:hidden;
        -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
       /* padding-bottom: 10px;*/ /* Optional: to add space if scrollbar appears */
    }

    /* Optional: Adjust scrollbar style */
    .nav-tabs::-webkit-scrollbar {
        height: 8px;
    }

    .nav-tabs::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: 10px;
    }

    .nav-tabs::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }
}