body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fd;
    margin: 0;
    padding: 0;
    color: #333;
}

.tile-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e63946;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 999px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.link-tile {
    position: relative; /* allow badge positioning */
}

 .tile-icon-wrap{
    position: relative;
    display: inline-block;
    line-height: 1;
  }

  .ts-alert-badge{
    position: absolute;
    top: -6px;
    right: -10px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e63946;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-sizing: border-box;
  }


/* Test */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.link-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #1d3557;
    background-color: #f1f3f8;
    padding: 20px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background-color 0.2s ease, transform 0.2s ease;
    font-weight: 500;
}

.link-tile:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.link-tile i {
    font-size: 1.8em;
    margin-bottom: 10px;
}


/* End Test */

.sticky-note {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 250px;
    height: 40px;
    background: #fff9c4;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: height 0.3s ease;
    font-family: 'Roboto', sans-serif;
    z-index: 9999;
}

.sticky-note.open {
    height: 220px;
}

.sticky-header {
    background: #fff176;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #ccc;
    user-select: none;
}

#sticky-textarea {
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: none;
    resize: none;
    outline: none;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background: transparent;
    display: none;
}

.sticky-note.open #sticky-textarea {
    display: block;
}

a.teamlink-link {
    color: white !important;
}

.expiration-date {
    font-weight: bold;
}

.expiried {
    color: red;
}

.expiring-soon {
    color: #FFA500;
}

a.created-by-link {
    color: #545454;
}

/* Styling for the checkbox group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    transform: scale(1.2);
    /* Increase size for better visibility */
    accent-color: #457b9d;
    /* Match the button color */
}

.checkbox-group label {
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
}

button#add-certification-btn {
    margin-top: 20px;
}

/* Modal container */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
}

/* Modal content box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    /* Could be more or less, depending on screen size */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #e63946;
    text-decoration: none;
    cursor: pointer;
}


.notes-list-styled {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.note-item {
    background-color: #f8f9fd;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.note-item:hover {
    background-color: #e9ecef;
}

.note-content {
    font-size: 1.0em;
    color: #333;
    margin-bottom: 5px;
}

.note-meta {
    font-size: 0.85em;
    color: #6c757d;
    text-align: right;
}

.link-delete {
    color: #e63946;
    /* Red color for deletion link */
    text-decoration: none;
    /* No underline by default */
    cursor: pointer;
    /* Cursor to indicate clickable */
    margin-left: 10px;
    /* Some space from the meta info */
    font-size: 0.9em;
    /* Slightly smaller to differentiate from main text */
}

.link-delete:hover {
    text-decoration: underline;
    /* Underline on hover for better visibility */
}



/* Styling for the Team Profile section */
#team-profile-section {
    margin-top: 20px;
}

#team-profile-section h3 {
    font-size: 1.4em;
    color: #1d3557;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.input-group textarea {
    resize: none;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    background-color: #f8f9fd;
    transition: border-color 0.3s ease;
    outline: none;
}

.input-group textarea:focus {
    border-color: #457b9d;
}

.toggle-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.toggle-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f3f8;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.toggle-option:hover {
    background-color: #e9ecef;
}

.toggle-label {
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
}

.toggle-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #457b9d;
}

.button-group .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-edit {
    background-color: #2a9d8f;
    color: white;
}

.btn-save {
    background-color: #457b9d;
    color: white;
    display: none;
    /* This can be toggled based on your JS logic */
}

.btn-cancel {
    background-color: #e63946;
    color: white;
    display: none;
    /* This can be toggled based on your JS logic */
}

.btn:hover {
    opacity: 0.9;
}

.button-group {
    margin-top: 20px;
}

/* Table Container */
.table-container {
    overflow-x: auto;
}

/* Styled Table */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.styled-table thead tr {
    background-color: #1d3557;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f8f9fd;
}

.styled-table tbody tr:hover {
    background-color: #e9ecef;
}

.styled-table tbody tr td {
    color: #333;
}

.styled-table tbody tr td a {
    color: #457b9d;
    text-decoration: none;
}

.styled-table tbody tr td a:hover {
    text-decoration: underline;
}

/* Styled Table Row Hover Effect */
.styled-table tbody tr {
    cursor: pointer;
    /* Change cursor to pointer */
    transition: background-color 0.3s ease;
}

.styled-table tbody tr:hover {
    background-color: #e0e7ff;
    /* Subtle background color change on hover */
}


.italic {
    font-style: italic;
}

.roles li {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f3f8;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
}

.roles li .expiration {
    display: flex;
    flex-direction: column;
    /* Stack the label and date */
    align-items: flex-start;
    /* Align to the start for a cleaner look */
}

.expiration-label {
    font-size: 0.8em;
    /* Smaller font size for "Expiration" */
    color: #6c757d;
    /* Softer gray color */
    margin-bottom: 2px;
    /* Small space between label and date */
}

.expiration-date {
    font-size: 1em;
    /* Keep the date regular size for readability */
}

.roles li .expired {
    color: #e63946;
    /* Red for expired items */
}

.roles li .valid {
    color: #2a9d8f;
    /* Green for valid items */
}



#confirmation-popup {
    display: block;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    margin-bottom: 25px;
}

button#crop-image-btn {
    margin: 0 auto;
    display: block;
    margin-bottom: 40px;
}


/* Text styling */
#confirmation-popup p {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.hour-disclaimer {
    font-size: 0.85em;
    /* Slightly smaller font size */
    color: #6c757d;
    /* A softer gray to blend better */
    text-align: center;
    margin-top: 5px;
    padding: 8px;
    background-color: #f8f9fd;
    /* Matches the dashboard's card background */
    border-radius: 5px;
    border: 1px solid #e9ecef;
    /* Subtle border to set it apart */
    font-style: italic;
    /* Adds an emphasis without being too bold */

}

.overdue {
    font-weight: bold !important;
    color: red !important;
}

.completed {
    text-decoration: line-through !important;
    font-style: italic;
}

.update-password {
    margin-top: 20px;
}

.download-contact {
    margin-top: 15px;
}

input#badge-number {
    pointer-events: none;
    opacity: .5;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.header {
    background-color: #1d3557;
    color: #f1faee;
    padding: 15px 30px;
    width: 100%;
    text-align: center;
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
}

.welcome-message {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #1d3557;
    text-align: center;
}

.card {
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 25px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #1d3557;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.profile-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 10px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #f8f9fd;
}

.profile-info-item label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 2px;
}

.profile-info-item span {
    font-size: 1em;
    color: #333;
}

.profile-picture {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.profile-picture img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    margin-bottom: 10px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1d3557;
    font-weight: 500;
    background-color: #f1f3f8;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.link-item:hover {
    background-color: #e9ecef;
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #6c757d;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #f8f9fd;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #457b9d;
}

.address-row,
.license-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.address-row .input-group,
.license-row .input-group {
    flex: 1;
    min-width: 150px;
    box-sizing: border-box;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-save {
    background-color: #457b9d;
    color: white !important;
    display: none;
}

.btn-blue {
    background-color: #457b9d;
    color: white !important;
    text-decoration: none !important;
}

.btn-save:hover {
    background-color: #1d3557;
}

.btn-cancel {
    background-color: #e63946;
    color: white;
    display: none;
}

.btn-red {
    background-color: #e63946;
    color: white !important;
}

.btn-cancel:hover {
    background-color: #d62828;
}

.btn-edit {
    background-color: #2a9d8f;
    color: white;
    text-decoration: none !important;

}

.btn-edit:hover {
    background-color: #21867a;
}

.roles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.roles li {
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f1f3f8;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
}

.roles li span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.roles li span i {
    font-size: 1.2em;
}

.roles li .expired {
    color: #e63946;
}

.roles li .valid {
    color: #2a9d8f;
}

.error {
    color: #e63946;
    font-size: 0.85em;
    margin-top: 5px;
    display: none;
}

.hours-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
    font-size: 1em;
}

.hours-box {
    display: flex;
    flex-direction: column;
    background-color: #f8f9f8;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.hours-box div {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}

.hours-title {
    font-weight: 500;
    color: #1d3557;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.section-title {
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1d3557;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.view-mode .input-group input,
.view-mode .input-group select {
    background-color: transparent;
    border: none;
    pointer-events: none;
    color: #333;
}

.view-mode .input-group label {
    display: block;
    color: #6c757d;
}

/* General styling for profile info items to ensure even padding */
.profile-info-item {
    padding: 10px 15px;
    /* Adjust padding to be equal on all sides */
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background-color: #f8f9fd;
    box-sizing: border-box;
    /* Ensure padding is included in the total width */
}

/* Media query adjustments for mobile */
@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
        /* Stack items vertically */
        gap: 10px;
        /* Space between items */
    }

    .profile-info-item {
        width: 100%;
        /* Ensure each item takes the full available width */
        padding: 10px 15px;
        /* Keep padding consistent */
        box-sizing: border-box;
    }

    .input-group input,
    .input-group select {
        width: 100%;
        /* Ensure inputs fill the entire width */
        padding-left: 10px;
        /* Add consistent padding within the input */
        padding-right: 10px;
        /* Ensure padding on both sides is the same */
        margin: 0;
        /* Remove any default margin */
        box-sizing: border-box;
    }
}