/* General Reset */
body, ul, table {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Container */
.container {
    width: 80%;
    margin: 20px auto;
}

/* Page Title */
.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-container {
    background-color: #f4f6f7;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-form label {
    font-weight: bold;
}

.user-form input, .user-form select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-submit {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2980b9;
}

/* Users Table */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th, .users-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.users-table th {
    background-color: #34495e;
    color: white;
}

.users-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.users-table tr:hover {
    background-color: #f1f1f1;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Navbar Top Section */
.navbar-top {
    background-color: #002d5c;
    text-align: center;
    padding: 10px 0;
}

.navbar-title {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* Navbar Main Section */
.navbar-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #004080;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; /* For hamburger positioning */
}

.navbar-logo img {
    width: 150px;
    max-width: 100%;
}

.navbar-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: 20px;
}

.navbar-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    position: relative;
}

.navbar-menu ul li {
    position: relative;
}

.navbar-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar-menu ul li a:hover {
    background-color: #003366;
    color: #f1f1f1;
}

/* Dropdown Menu */
.navbar-menu ul li .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #004080;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.navbar-menu ul li:hover .dropdown-menu {
    display: block;
}

.navbar-menu ul li .dropdown-menu li {
    margin: 8px 0;
}

.navbar-menu ul li .dropdown-menu li a {
    padding: 8px 10px;
    font-size: 16px;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-menu ul li .dropdown-menu li a:hover {
    background-color: #003366;
    color: #f1f1f1;
}

/* Hamburger Menu Toggle */
.navbar-toggle {
    display: block;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

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

    .navbar-top {
        padding: 8px 10px;
    }

    .navbar-title {
        font-size: 18px;
        padding: 0 10px;
    }

    .navbar-main {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .navbar-logo img {
        width: 120px;
    }

    .navbar-menu {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .navbar-menu ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background-color: #004080;
        padding: 10px 0;
    }

    .navbar-menu ul.active {
        display: flex !important;
    }

    .navbar-menu ul li {
        width: 100%;
    }

    .navbar-menu ul li a {
        text-align: left;
        padding: 10px 20px;
        font-size: 16px;
        display: block;
    }

    .navbar-menu ul li .dropdown-menu {
        position: static;
        background-color: #003366;
        box-shadow: none;
        padding: 5px 20px;
        border-radius: 0;
    }

    .navbar-menu ul li:hover .dropdown-menu {
        display: none;
    }

    .navbar-menu ul li.active .dropdown-menu {
        display: block;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .sticky-notes-wrapper {
        margin-top: 20px;
    }

    .add-note-float {
        bottom: 80px;
        right: 15px;
    }

    .add-note-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .add-note-panel {
        width: 250px;
    }

    .sticky-note {
        position: static;
        width: 100%;
        margin-bottom: 20px;
        resize: vertical;
        min-height: 120px;
    }

    .analytics-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .styled-form {
        padding: 20px;
    }

    .btn-submit,
    .btn-scan {
        font-size: 14px;
        padding: 8px 15px;
    }

    .attachment-form .form-row, .section-edit .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    .attachment-form label, .section-edit label {
        width: 100%;
        margin-bottom: 5px;
    }

    .attachment-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .attachment-item .btn-delete {
        margin-top: 5px;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .navbar-title {
        font-size: 16px;
    }

    .navbar-logo img {
        width: 100px;
    }

    .navbar-menu ul li a {
        font-size: 14px;
        padding: 8px 15px;
    }

    .navbar-menu ul li .dropdown-menu li a {
        font-size: 14px;
        padding: 8px 15px;
    }

    .add-note-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .add-note-panel {
        width: 200px;
    }
}

/* Sticky Notes */
.sticky-notes-wrapper {
    margin-top: 10px;
    position: relative;
    min-height: 0;
}

.notes-container {
    position: relative;
    width: 100%;
    height: 0;
}

.sticky-note {
    position: absolute;
    background-color: #ffff99;
    border: 1px solid #e6e600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 100px;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

.sticky-note .note-header {
    background-color: #e6e600;
    padding: 5px;
    cursor: move;
    text-align: right;
}

.sticky-note .close-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #34495e;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.sticky-note .close-btn:hover {
    color: #000;
}

.sticky-note .note-content {
    width: 100%;
    height: calc(100% - 25px);
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.sticky-note .note-content:focus {
    background: #fffacd;
}

.sticky-note::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAABBJREFUKFNjYGBg+A8EDAwAAAAGAAH8A3YAAAAASUVORK5CYII=') no-repeat;
    cursor: nwse-resize;
}

/* Floating Add Note Button and Panel */
.add-note-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.add-note-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-note-btn:hover {
    background-color: #2980b9;
}

.add-note-panel {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    font-family: 'Roboto', sans-serif;
}

.add-note-panel textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.add-note-panel .btn-submit {
    width: 100%;
    border-radius: 5px;
}

/* Messages */
.success, .error {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.success {
    background: #d4edda;
    color: #155724;
}

.error {
    background: #f8d7da;
    color: #721c24;
}

/* Logout Button */
.logout {
    background-color: #e74c3c;
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.logout:hover {
    background-color: #c0392b;
}

/* Dashboard Styles */
.analytics-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #f4f6f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 220px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #34495e;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Login Page Styles */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f4f6f7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-logo img {
    width: 150px;
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f4f6f7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-section-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #34495e;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

/* Form Actions */
.form-actions {
    text-align: right;
    margin-top: 15px;
}

/* Form Container */
.styled-form {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
    font-family: 'Roboto', sans-serif;
}

/* Form Rows */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 8px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Buttons */
.btn-scan {
    background-color: #2ecc71;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-scan:hover {
    background-color: #27ae60;
}

/* Actions Buttons Styling */
.actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.actions a {
    display: inline-block;
    padding: 8px 15px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    transition: background-color 0.3s ease;
}

.btn-view {
    background-color: #3498db;
}

.btn-view:hover {
    background-color: #2980b9;
}

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

.btn-edit:hover {
    background-color: #27ae60;
}

/* Table Styling */
.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 16px;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.styled-table th, .styled-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* Search Bar Styling */
.search-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-container input[type="text"] {
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
    margin-right: 10px;
}

.btn-search {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn-search:hover {
    background-color: #2980b9;
}

/* Agenda Item Links */
.agenda-item a {
    text-decoration: none;
    color: #062f3c;
    font-size: 16px;
    transition: color 0.3s ease;
}

.agenda-item a:hover {
    color: #f68236;
}

/* Enhanced Styling for Expanded Space */
.pending { color: #f39c12; font-style: italic; }
.missing { color: #e74c3c; font-weight: bold; }
.details-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    font-family: 'Raleway', sans-serif;
}
.details-section.show {
    max-height: 1000px;
    padding: 15px;
}
.details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    padding: 10px 0;
}
.details-grid strong {
    color: #062f3c;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}
.details-grid div {
    color: #333131;
    font-size: 15px;
    line-height: 1.6em;
}
.header {
    background: #062f3c;
    color: #fff;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 2px;
    border-radius: 5px 5px 0 0;
    margin: -15px -15px 15px -15px;
}
.decision-approved { color: green; font-weight: bold; }
.decision-cond-approved { color: darkgreen; font-weight: bold; }
.decision-deferred { color: orange; font-weight: bold; }
.decision-acknowledged { color: blue; font-weight: bold; }
.decision-not-acknowledged { color: gray; font-weight: bold; }
.decision-rejected { color: red; font-weight: bold; }
.decision-cond-acknowledged { color: darkblue; font-weight: bold; }
.conditions-row { display: none; margin-top: 10px; }
.section-item {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.section-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: bold;
}
.attachment-form {
    margin: 0 0 15px 0;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.attachment-form .form-row {
    display: flex;
    align-items: center;
    shroud: 10px;
    margin-bottom: 10px;
}
.attachment-form label {
    width: 150px;
    font-weight: bold;
}
.attachment-form input[type="file"] {
    flex: 1;
    padding: 5px;
}
.attachment-form .btn-submit {
    padding: 8px 15px;
    background: #61b3de;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.attachment-form .btn-submit:hover {
    background: #4cdb4c;
}
.attachments-list {
    margin: 0 0 15px 0;
}
.attachment-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: move;
}
.attachment-item:hover {
    background: #e9e9e9;
}
.attachment-number {
    width: 50px;
    font-weight: bold;
}
.attachment-item a {
    flex: 1;
    text-decoration: none;
    color: #062f3c;
}
.attachment-item a:hover {
    color: #f68236;
}
.attachment-item .btn-delete {
    padding: 5px 10px;
    margin-left: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.attachment-item .btn-delete:hover {
    background: #c0392b;
}
.section-edit {
    margin: 0;
    padding: 10px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.section-edit .form-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-edit label {
    width: 150px;
    font-weight: bold;
}
.section-edit input[type="text"] {
    flex: 1;
    padding: 5px;
}
.section-edit .btn-save, .section-edit .btn-delete {
    padding: 5px 10px;
}
.section-edit .btn-save {
    background: #61b3de;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.section-edit .btn-save:hover {
    background: #4cdb4c;
}
.section-edit .btn-delete {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.section-edit .btn-delete:hover {
    background: #c0392b;
}