.banner {
    display: flex;
    margin: 0;
    min-height: 42px;
    vertical-align: middle;
    width: 100%;
}

.top {
    position: sticky;
    top: 0;
}

.banner .icon {
    margin: 10px;
}

.banner .title {
    margin: 5px;
}

.banner .menu {
    margin: 5px;
}

.banner .first {
    margin-left: auto;
}

.banner::after {
    clear: both;
}
  


.nav-links .menu {
    position: relative;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.nav-links .menu:hover {
    color: var(--primary-blue);
    background: rgba(179, 196, 222, 0.1);
    border-color: rgba(179, 196, 222, 0.2);
    box-shadow: 
        0 4px 15px rgba(179, 196, 222, 0.2),
        inset 0 0 10px rgba(179, 196, 222, 0.1);
}


.section {
    margin: 4rem 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links .first {
    margin-left: auto;
}
.banner .first {
    margin-left: auto;
}
.bug-report {
    margin: 10px;
}

.bug-report:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.dropdown-content {
    border-radius: 14px;
    display: none;
    position: absolute;
    transform: translateX(-178px);
    background-color: #f3f3f3;
    min-width: 260px;
    box-shadow: 0px 0px 20px black;
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 5px;
    text-decoration: none;
    display: block;
    font-weight: 400;
}

.dropdown-content a:hover {
    border-radius: 14px;
    background-color: #dddddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #deb8b3;
}


.img_no_click_no_hover {
    height: 16px;
    width: 16px;
    margin: 0px;
}

.img_click_with_hover {
    height: 16px;
    width: 16px;
    margin: 0px;
}

.img_click_with_hover:hover {
    transform: scale(1.5);
    cursor: pointer;
}

.large_img_click_with_hover {
    height: 24px;
    width: 24px;
    margin: 0px;
}

.large_img_click_with_hover:hover {
    transform: scale(1.5);
    cursor: pointer;
}



.period_btn {
    border: 1px solid #b3c4de;
    background-color: #b3c4de;
    color: white;
    margin: 0;
    position: absolute;
    font-size: 16px;
    width: 240px;
}
.span_hov_img_left {
    float: left;
}

.span_hov_img_right {
    float: left;
    transform: translateX(240px);
}

.span_hov_img_left:hover .hov_img {
    display: inline;
}

.span_hov_img_right:hover .hov_img {
    display: inline;
}

.hov_img {
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}

.dense_list_item {
    font-size: 8px;
    font-weight: 200;
    color: 444D58;
}

.times_table {
    display: table;
    border-collapse: collapse;
    padding: 25px;
    margin: 10px 0 0 0;
    width: 100%;
}

.times_table thead th {
    text-align: left;
    font-weight: 200;
}

.times_table tbody td:hover {
    background-color: #deb8b3;
}

.times_table td {
    background-color: #9fa4a9;
    color: #ffffff;
    text-align: center;
    padding: 5px;
}


.controls {
    margin: 5px;
    padding: 0px;
    vertical-align: baseline;
    display: inline;
    float: right;
    position: relative;
    transform: translateX(-280px);
}

.controls_span {
    float: left;
}

.controls .vcenter {
    margin: 0;
    position: absolute;
    font-size: 16px;
    color: white;
    background-color: #b3c4de;
}


.overlay_msg {
    position: absolute;
    border: 8px solid #deb8b3;
    z-index: 2147483646;
    padding: 20px;
    top: 10px;
    left: 100px;
}


.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider2 {
    position: absolute;
    cursor: pointer;
    left: 0;
    right: 0;
    bottom: -2px;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    width: 48px;
    height: 20px;
}

.slider2:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider2 {
}

input:focus + .slider2 {
}

input:checked + .slider2:before {
    -webkit-transform: translateX(28px);
    -ms-transform: translateX(28px);
    transform: translateX(28px);
}

.slider2.round {
    border-radius: 12px;
}

.slider2.round:before {
    border-radius: 50%;
}


button {
    border: 1px solid #444d58;
    border-radius: 14px;
    color: #444d58;
    padding: 5px;
    text-decoration: none;
    margin: 10px;
    -webkit-appearance: button;
    appearance: button;
    outline: none;
}

button:hover {
    background-color: #deb8b3;
    color: #ffffff;
}


button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

button:disabled:hover {
    background-color: #ccc;
}


.button {
    border: 1px solid #444d58;
    border-radius: 14px;
    color: #444d58;
    padding: 5px;
    text-decoration: none;
    margin: 10px;
    -webkit-appearance: button;
    appearance: button;
    outline: none;
}

.button:hover {
    background-color: #deb8b3;
    color: #ffffff;
}

.pseudo_btn {
    border: 1px solid #444d58;
    border-radius: 14px;
    color: #444d58;
    padding: 5px;
    text-decoration: none;
    margin: 10px;
    -webkit-appearance: button;
    appearance: button;
    outline: none;
}
.pseudo_btn:hover {
    background-color: #deb8b3;
    color: #ffffff;
}

.pseudo_btn_grey {
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    color: #d9d9d9;
    padding: 5px;
    text-decoration: none;
    margin: 10px;
    font-size: 16px;
    -webkit-appearance: button;
    appearance: button;
    outline: none;
    float: right;
}


.below_control {
    position: absolute;
    left: 0px;
    bottom: -20px;
    text-align: center;
    width: 100%;
}

.slider_value {
    position: absolute;
    left: 0px;
    top: -25px;
    text-align: center;
    width: 100%;
}

.labels_below {
    position: relative;
    margin-left: 40px;
}



.theme-toggle {
}

.msg {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 400px;
    margin-left: -200px;
    z-index: 20000;
    border-radius: 15px;
    box-shadow: 0px 0px 20px black;
    background: #ffffff;
    padding: 10px;
    margin-top: 2px;
    color: #444d58;
}


input {
    border: 1px solid #444d58;
    border-radius: 14px;
    background-color: #f3f3f3;
    color: black;
    font-size: 16px;
    width: 130px;
    padding: 5px;
    margin: 5px;
}

input:hover {
    background-color: #deb8b3;
    color: #ffffff;
}

input[type="checkbox"] {
    width: 16px;
    margin: 8px;
    box-sizing: border-box;
}


.main_table tr.category td.AP_name {
    color: #000000;
    background-color: unset;
}


.main_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.main_table th,
.main_table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(179, 196, 222, 0.2);
}
.main_table tr.narrow th,
.main_table tr.narrow td {
    padding: 0;
    border-bottom: 1px solid rgba(179, 196, 222, 0.2);
}

.main_table th {
    font-weight: 600;
    background: rgba(179, 196, 222, 0.1);
    font-size: 1.1rem;
}

.main_table th:first-child {
    border-top-left-radius: 1rem;
}

.main_table th:last-child {
    border-top-right-radius: 1rem;
}

.main_table tr.category td {
    background: rgba(217, 223, 179, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.main_table td {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.main_table tr:hover td {
    background: rgba(179, 196, 222, 0.05);
}

.main_table tbody tr.selected_row {
    background-color: #dadeb3;
}


.dark-table-container {
    overflow-x: auto;
    margin: 2px;
    background: #444d58;
    border-radius: 1.5rem;
}


.block {
    display: inline-block;
    border-radius: 1rem;
    border: 1px solid #444d58;
    padding: 10px;
    margin: 50px;
    vertical-align: middle;
}

.on {
    background: #e9ffc8;
    box-shadow: 0px 0px 20px black;
}

.off {
    background: #444d58;
}

.block:hover {
    box-shadow: 0px 0px 10px black;
}

.gray_block {
    display: inline-block;
    border-radius: 1rem;
    border: 1px solid #444d58;
    background: #f3f3f3;
    color: #999999;
    padding: 10px;
    margin: 50px;
    vertical-align: middle;
}


.popup {
    position: absolute;
    overflow: hidden;
    border: 1px solid #444d58;
    border-radius: 1rem;
    background: #ffffff;
    padding: 5px;
    top: 15px;
    left: 15px;
    z-index: 64000;
    box-shadow: 0px 0px 5px black;
    display: none;
}
.activity {
    position: absolute;
    writing-mode: sideways-lr;
    border: 1px solid #444d58;
    border-radius: 3px;
    padding: 2px;
    box-sizing: border-box;
    font-size: xx-small;
}
.event {
    writing-mode: horizontal-tb;
    position: absolute;
    border: 1px solid #444d58;
    border-radius: 3px;
    z-index: 60000;
    padding: 2px;
    box-sizing: border-box;
    font-size: xx-small;
}















.timesheet-page {
    padding: 2rem;
}

.timesheet-header {
    margin-bottom: 2rem;
}

.header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.employee-select {
    min-width: 200px;
}

.select-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
}

.date-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--bg-secondary);
}

.week-display {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}


.timesheet-card, .chart-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(179, 196, 222, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(179, 196, 222, 0.1),
        inset 0 0 10px rgba(222, 185, 179, 0.1);
    margin-top: 2rem;
}

.timesheet-card:hover, .chart-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(179, 196, 222, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(179, 196, 222, 0.2),
        inset 0 0 20px rgba(222, 185, 179, 0.1);
}

[data-theme="dark"] .timesheet-card,
[data-theme="dark"] .chart-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(179, 196, 222, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(179, 196, 222, 0.05);
}

[data-theme="dark"] .timesheet-card:hover,
[data-theme="dark"] .chart-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(179, 196, 222, 0.2);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(179, 196, 222, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.timesheet-table {
    width: 100%;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
}

.timesheet-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.timesheet-table th,
.timesheet-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(179, 196, 222, 0.1);
}

.timesheet-table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: rgba(179, 196, 222, 0.1);
}

[data-theme="dark"] .timesheet-table {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .timesheet-table th {
    background: rgba(179, 196, 222, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .timesheet-table td {
    border-color: rgba(179, 196, 222, 0.05);
}

.card-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    color: #ffffff;
}

[data-theme="dark"] .action-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.add-task-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.add-task-btn:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.chart-controls {
    display: flex;
    gap: 1rem;
}

.chart-type-btn {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chart-type-btn:hover, 
.chart-type-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .chart-type-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    color: #ffffff;
}

[data-theme="dark"] .chart-type-btn:hover,
[data-theme="dark"] .chart-type-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.chart-container {
    padding: 1.5rem;
    height: 300px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.modal-body {
    padding: 1.5rem;
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .timesheet-table {
        padding: 1rem;
    }

    .timesheet-table th,
    .timesheet-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

[data-theme="dark"] .timesheet-card,
[data-theme="dark"] .chart-card {
    background: var(--bg-primary-dark);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-primary-dark);
}

[data-theme="dark"] .select-control {
    background: var(--bg-primary-dark);
    color: var(--text-primary-dark);
}

[data-theme="dark"] .timesheet-table th {
    background: var(--bg-secondary-dark);
}

.timesheet-page .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.timesheet-page .hero-section h1 {
    color: var(--text-on-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.timesheet-page .hero-description {
    color: var(--text-on-primary);
    font-size: 1.2rem;
    opacity: 0.9;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper:hover {
    border-color: var(--primary-color);
}

.select-control {
    appearance: none;
    background: transparent;
    border: none;
    padding-right: 24px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
}

.select-control option {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 8px;
}

.select-control optgroup {
    background-color: var(--card-bg);
    color: var(--text-color);
    font-weight: 600;
}

[data-theme="dark"] .select-wrapper {
    background: var(--dark-card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .select-control {
    color: #ecf0f1;
}

[data-theme="dark"] .select-control option,
[data-theme="dark"] .select-control optgroup {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.timesheet-table tbody tr {
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.timesheet-table tbody tr[data-project="Project A"] {
    background: rgba(255, 99, 132, 0.1);
    border-left: 3px solid rgba(255, 99, 132, 0.5);
}

.timesheet-table tbody tr[data-project="Project B"] {
    background: rgba(54, 162, 235, 0.1);
    border-left: 3px solid rgba(54, 162, 235, 0.5);
}

.timesheet-table tbody tr[data-project="Project C"] {
    background: rgba(255, 206, 86, 0.1);
    border-left: 3px solid rgba(255, 206, 86, 0.5);
}

[data-theme="dark"] .timesheet-table tbody tr[data-project="Project A"] {
    background: rgba(255, 99, 132, 0.15);
    border-left: 3px solid rgba(255, 99, 132, 0.6);
}

[data-theme="dark"] .timesheet-table tbody tr[data-project="Project B"] {
    background: rgba(54, 162, 235, 0.15);
    border-left: 3px solid rgba(54, 162, 235, 0.6);
}

[data-theme="dark"] .timesheet-table tbody tr[data-project="Project C"] {
    background: rgba(255, 206, 86, 0.15);
    border-left: 3px solid rgba(255, 206, 86, 0.6);
}

.timesheet-table tbody tr:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 0 20px rgba(179, 196, 222, 0.1);
}

[data-theme="dark"] .timesheet-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(179, 196, 222, 0.05);
}

.timesheet-table tbody tr {
    transition: background-color 0.2s;
}

.timesheet-table tbody tr[data-project="Project A"] {
    background: rgba(255, 99, 132, 0.1);
}

.timesheet-table tbody tr[data-project="Project B"] {
    background: rgba(54, 162, 235, 0.1);
}

.timesheet-table tbody tr[data-project="Project C"] {
    background: rgba(255, 206, 86, 0.1);
}

[data-theme="dark"] .timesheet-table tbody tr[data-project="Project A"] {
    background: rgba(255, 99, 132, 0.15);
}

[data-theme="dark"] .timesheet-table tbody tr[data-project="Project B"] {
    background: rgba(54, 162, 235, 0.15);
}

[data-theme="dark"] .timesheet-table tbody tr[data-project="Project C"] {
    background: rgba(255, 206, 86, 0.15);
}

.timesheet-table tbody tr:hover {
    background: var(--hover-bg) !important;
}

[data-theme="dark"] .timesheet-table tbody tr:hover {
    background: var(--dark-hover-bg) !important;
}



.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background-alt);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 1.5rem;
    color: var(--accent);
}

.feature span {
    font-weight: 500;
    color: var(--text-primary);
}

.drag_img {
    margin: 0;
    padding: 0;
    border: none;
    position: absolute;
}

.small_date {
    font-size: 8px;
}