/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

/* Reset default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and general layout styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navbar styles */
header {
    background-color: #ee5a32;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

nav .logo-text {
    font-size: 24px;
    font-weight: bold;
}

nav button {
    background-color: #dd4b39; /* Match Google Red */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

nav button:hover {
    background-color: #c53727; /* Darker shade of Google Red */
}

/* Main content area */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: 80px;
    margin-bottom: 40px;
}

/* Section styles */
section {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    width: 100%;
}

section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ee5a32;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

form input[type="text"], form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form input[type="file"] {
    margin-bottom: 15px;
}

form button {
    background-color: #dd4b39; /* Match Google Red */
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #c53727; /* Darker shade of Google Red */
}

/* Entries list styles */
#entries {
    margin-top: 20px;
}

/* No longer used */
/* .entry {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.entry h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.entry p {
    font-size: 16px;
    line-height: 1.4;
} */

/* Footer styles */
footer {
    background-color: #ee5a32;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Google Sign-In button styles */
.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 160px); /* Adjust for header and margin */
}

.login-description {
    text-align: center;
    margin-bottom: 30px;
}

.login-description h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #ee5a32;
}

.login-description p {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

#googleLogin {
    background-color: #dd4b39; /* Google Red */
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

#googleLogin:hover {
    background-color: #c53727; /* Darker shade of Google Red */
}

/* Styles for entry buttons */
.entry button {
    background-color: #dd4b39; /* Google Red */
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.entry button:hover {
    background-color: #c53727; /* Darker shade of Google Red */
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: row; /* Ensure the logo-text and button are on the same line */
        justify-content: space-between; /* Space out the items evenly */
        align-items: center; /* Center align items vertically */
    }

    nav .logo-text {
        margin-bottom: 0; /* Reset margin-bottom */
    }

    main {
        align-items: center;
        margin-top: 75px; /* Adjust for smaller screens */
    }

    section {
        margin: 10px;
    }

    form input[type="text"], form textarea {
        font-size: 14px;
        padding: 10px;
    }

    form button {
        padding: 10px 20px;
    }
}

.alert {
    z-index: 1050; /* Ensure alerts are on top of other elements */
    margin: 0 10px 10px 10px; /* Margin around the alert */
}

/* Have the alert fixed to the bottom of the page */
.position-fixed {
    position: fixed; /* Ensure the alert stays fixed at the bottom */
    bottom: 0; /* Position at the bottom */
    left: 0; /* Center horizontally */
    /*width: 100%;*/ /* Full width */
    text-align: center; /* Center text horizontally */
}

/* Container so the spinner can be centered */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #ee5a32;
  }
  
  .logo {
    max-height: 125px;
    max-width: 125px;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
  }

  nav .logo {
    max-height: 50px;
    max-width: 50px;
    border-radius: 12px;
    margin-right: 7px;
  }

  .logo-text {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .add-entry-floating-button {
    position: fixed;
    bottom: 66px; /* take into account footer */
    right: 20px;
    background-color: #dd4b39;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

  .add-entry-floating-button .bi-plus{
    font-size: 40px;
}

.add-entry-floating-button:hover {
    background-color: #c53727; /* Darker shade of Google Red */
}

.custom-file-label::after {
    content: "Browse";
}

/* Ensure flex utilities are available */
.d-flex {
    display: flex;
}

/* Search bar styles */
.search-bar {
    max-width: 400px; /* Adjust width as needed */
}

.search-bar .input-group-text {
    background-color: #dd4b39; /* Match Google Red */
    color: #fff;
    border: none;
    cursor: pointer;
}

.search-bar .form-control {
    border-color: #ccc; /* Default bootstrap form control border color */
    border-left: none; /* Remove left border to integrate with prepend icon */
    border-radius: 0 4px 4px 0; /* Rounded corners on the right side */
}

.search-bar .form-control:focus {
    border-color: #dd4b39; /* Focus border color */
    box-shadow: none; /* Remove default box shadow */
}

/* Responsive adjustments */
@media (max-width: 767.98px) { /* Breakpoint for mobile devices */
    .entries-section {
        flex-direction: column-reverse; /* Reverse column order to place search bar below header */
    }

    .search-bar {
        width: 100%; /* Full width on mobile */
        max-width: none; /* Remove max-width on mobile */
    }
}

.entry.card {
    min-height: calc(100% - 1rem);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}