body {
    background-color: rgb(94, 77, 62);
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100%;
}

header {
    background-color: rgb(222, 119, 36);
    color: white;
    text-align: center;
    padding: 1px 0;
}

header.navbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* padding: 10px 20px; */

}

.project-button {
    margin-left: auto;
    margin-right: 1em;
}

.logout-button {
    margin-right: 1em;
}

.navbar-item {
    padding: 5px;
}
main {
    padding: 20px 0px 20px 0px;
    flex: 1;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    overflow: hidden;
}

.warpper
{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    margin-top: 2em;
    /* align-items: center; */
}

.project-item {
    background-color: #d4d9df;
    color: rgb(94, 94, 94);
    padding: 0.1em 1em 1em 1em;
    height: 350px;
    width: 350px;
    border-radius: 5px;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 800px) {
    .project-item {
        width: 90%;
        height: 350px;
    }
}

.project-item > a {
    text-decoration: none;
    color: inherit;
}

.project-header {
    color: rgb(34, 34, 34);
    text-align: center;
    margin: 1em 1em 0em 1em;
    padding-bottom: 0.5em;
    border-bottom: #333 solid 2px;
}

.project-header:hover {
    color: #de7724;
}

.project-discription {
    width: 100%;
    height: 68%;
    overflow: auto;
}

.project-doc-container {
    background: #d4d9df;
    color: rgb(94, 94, 94);
    /* padding: 1em; */
    width: 890px;
    height: 100%;
    overflow: hidden;
    border-radius: 5px;
}

@media (max-width: 800px) {
    .project-doc-container {
        width: 90%;
    }
}

.project-desc-header {
    color: rgb(34, 34, 34);
    text-align: left;
    margin: 1em 1em 0em 1em;
    padding-bottom: 0.5em;
    border-bottom: #333 solid 2px;
}

.project-desc-content {
    margin: 1.5em;
}

.codehilite {
    background: #f8f8f8;
    border: 2px solid #aeaeae;
    border-radius: 5px;
    color: #333;
    padding: 0.5em;
    overflow: auto;
}

.markdown-table {
    width: max-content;
    border-collapse: collapse;
    margin: 1em 0;
}

.markdown-table-row {
    background-color: #f9f9f9;
    border: 1px solid #000000;
    padding: 0.5em;
}

.markdown-table-header {
    border: 1px solid #000000;
    padding: 0.3em;
}

.markdown-table-cell {
    border: 1px solid #000000;
    padding: 0.3em;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    background: #da945c;
    border-radius: 5px;
    
}

.profile-container {
    display: flex;
    flex-direction: column;
    padding: 0.5em 1em 1em 1em;
    align-items: left;
    height: fit-content;
    width: 890px;
    height: 100%;
    border-radius: 5px;
    background-color: #d4d9df;
}

.project-description-content {
    margin-top: 1em;
}


.tabs {
    overflow: hidden;
    color: rgb(94, 94, 94);
}

.tabs button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    color: inherit;
}

.tabs button:hover {
  background-color: #ddd;
}

.tabs button.active {
  background-color: #ccc;
}

.project-content {
    padding: 1em;
}

.searchbar {
    display: flex;
    justify-content: center;
    width: auto;
    margin: 1em 1em;
    margin-left: auto;
}

.searchbar input[type="text"] {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    justify-content: right;
    align-items: center;
}

.tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    padding: 5px 10px;
    margin: 5px;
    border-radius: 3px;
    font-size: 14px;
}

.tag.red {
    background-color: #ff7070;
}

.tag.green {
    background-color: #70ff70;
}

.tag.blue {
    background-color: #7070ff;
}

.tag.yellow {
    background-color: #ffff70;
}

/* Packages page styling */
.packages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.packages-title {
    text-align: center;
    color: #d4d9df;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.packages-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #d4d9df;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.packages-table thead {
    background-color: rgb(222, 119, 36);
    color: white;
}

.packages-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 2px solid #333;
}

.packages-table td {
    padding: 12px;
    /* border-bottom: 1px solid #bbb; */
    color: rgb(94, 94, 94);
}

.packages-table tbody tr:hover {
    background-color: #c9ced4;
    transition: background-color 0.3s ease;
}

.packages-table tbody tr:nth-child(even) {
    background-color: #e8ecf0;
}

.packages-table a {
    color: rgb(222, 119, 36);
    text-decoration: none;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.packages-table a:hover {
    background-color: rgb(222, 119, 36);
    color: white;
}

.no-packages {
    text-align: center;
    color: #d4d9df;
    font-size: 1.5em;
    margin-top: 50px;
    padding: 40px;
    background-color: rgba(212, 217, 223, 0.1);
    border-radius: 8px;
    border: 2px dashed #d4d9df;
}

/* Status styling */
.status-delivered {
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-in-transit {
    background-color: #FF9800;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-pending {
    background-color: #f44336;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
}

/* Responsive design for packages table */
@media (max-width: 768px) {
    .packages-table {
        font-size: 0.9em;
    }
    
    .packages-table th,
    .packages-table td {
        padding: 8px 6px;
    }
    
    .packages-title {
        font-size: 2em;
    }
    
    .packages-container {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .packages-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .packages-table thead,
    .packages-table tbody,
    .packages-table th,
    .packages-table td,
    .packages-table tr {
        display: block;
    }
    
    .packages-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .packages-table tr {
        background-color: #d4d9df;
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
    }
    
    .packages-table td {
        border: none;
        position: relative;
        padding-left: 40%;
        text-align: right;
    }
    
    .packages-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 35%;
        text-align: left;
        font-weight: bold;
        color: rgb(222, 119, 36);
    }
}

/* Make markers pass through click events to country layer beneath */
.pointer-events-none {
    pointer-events: none;
}

/* If you want to make only the stats box clickable but not the whole marker */
.pointer-events-none .stats-box {
    pointer-events: auto;
}

/* Table controls styles */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: rgb(222, 119, 36);
}

/* Download button styles */
.download {
    background-color: rgb(222, 119, 36);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    border: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.download:hover {
    background-color: rgb(200, 107, 32);
}

/* Enhanced table header styles */
.table th {
    position: relative;
    user-select: none;
}

.table th.sortable {
    cursor: pointer;
}

.table th.sortable:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-icon, .filter-icon {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.filter-icon:hover {
    opacity: 0.7;
}

/* Filter popup styles */
.filter-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.filter-popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.filter-header {
    background-color: rgb(222, 119, 36);
    color: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-filter {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-filter:hover {
    opacity: 0.7;
}

.filter-body {
    padding: 20px;
}

.filter-body input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.filter-body input:focus {
    outline: none;
    border-color: rgb(222, 119, 36);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.filter-actions button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.filter-actions button:first-child {
    background-color: rgb(222, 119, 36);
    color: white;
}

.filter-actions button:first-child:hover {
    background-color: rgb(200, 107, 32);
}

.filter-actions button:last-child {
    background-color: #ccc;
    color: #333;
}

.filter-actions button:last-child:hover {
    background-color: #bbb;
}

/* Table styles for excel.html */
.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #d4d9df;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.table thead {
    background-color: rgb(222, 119, 36);
    color: white;
}

.table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
    border-bottom: 2px solid #333;
}

.table td {
    padding: 12px;
    color: rgb(94, 94, 94);
}

.table tbody tr:hover {
    background-color: #c9ced4;
    transition: background-color 0.3s ease;
}

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

/* Responsive design for controls and new table functionality */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-container {
        max-width: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .header-icons {
        align-self: flex-end;
    }
    
    .filter-popup-content {
        width: 90%;
        margin: 20% auto;
    }
    
    .table th {
        padding: 10px 8px;
        font-size: 0.9em;
    }
    
    .table td {
        padding: 8px;
        font-size: 0.9em;
    }
}