html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

input, textarea {
    font-family: inherit;
    font-size: 14px;
}

.air-datepicker {
    z-index: 9999 !important;
}

.login-container {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 360px;
    text-align: center;
}

    .login-box h1 {
        margin-bottom: 24px;
        color: #3b82f6;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 20px;
    }

        .login-box h1 img {
            height: 36px;
        }

        .login-box h1 span {
            color: #3b82f6;
            font-weight: bold;
        }

    .login-box input {
        width: 100%;
        padding: 12px 16px;
        border-radius: 20px;
        border: 1px solid #e5e7eb;
        margin-bottom: 16px;
        font-size: 14px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .login-box button {
        background-color: #3b82f6;
        color: white;
        padding: 10px 16px;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        width: 100%;
    }

        .login-box button:hover {
            background-color: #2563eb;
        }

.topbar {
    background-color: white;
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

    .topbar .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

        .topbar .user-info a img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
        }

    .topbar .logout {
        background-color: #3b82f6;
        color: white;
        padding: 10px 16px;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
    }

        .topbar .logout:hover {
            background-color: #2563eb;
        }

.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding: 32px;
}

    .main-content .main-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
    }

        .main-content .main-container h2 {
            margin-top: 0;
        }

        .main-content .main-container h3 {
            margin-top: 0;
        }

.dashboard-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.dashboard-left-container {
    flex: 2;
    min-width: 600px;
}

.task-card-group {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.task-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    display: flex;
    gap: 16px;
}

    .task-card .left-row {
        min-width: 210px;
    }

        .task-card .left-row img {
            width: 200px;
            height: 120px;
            object-fit: cover;
            border-radius: 12px;
        }

        .task-card .left-row .profile-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 12px;
        }

            .task-card .left-row .profile-info a img {
                width: 24px;
                height: 24px;
                border-radius: 50%;
            }

    .task-card .right-row {
        flex: 1;
    }

        .task-card .right-row p {
            font-size: 14px;
        }

        .task-card .right-row .date-info {
            font-size: 13px;
            color: gray;
            text-align: right;
        }

.client-info-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    padding: 20px 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

    .client-info-card img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
    }

.client-info-docs {
}

    .client-info-docs .buttons-block {
        margin-bottom: 16px;
    }

    .client-info-docs .docs-block {
        display: flex;
        gap: 16px;
    }

.upload-button,
.save-button,
.password-button,
.task-button {
    background-color: #3b82f6;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.pagination-line {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-button {
    background-color: #3b82f6;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
}

    .pagination-button.active {
        background-color: #6366f1;
        color: white;
    }

    .pagination-button:hover {
        background-color: #2563eb;
    }

.upload-button:hover,
.save-button:hover,
.password-button:hover,
.task-button:hover {
    background-color: #2563eb;
}

.user-info img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .user-info img:hover {
        transform: scale(1.05);
    }

.search-input,
.filter-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 12px;
    min-width: 150px;
}

.table-wrapper {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    padding-left: 24px;
    padding-right: 24px;
}

    .data-table th,
    .data-table td {
        padding: 12px 16px;
        font-size: 15px;
        color: #1F2937;
        text-align: left;
    }

    .data-table th {
        font-weight: 600;
        border-bottom: none;
    }

    .data-table tbody tr {
        background: #F9FAFB;
    }

        .data-table tbody tr td:first-child,
        .data-table thead th:first-child {
            width: 40px;
        }

.filters-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-client {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-client-content {
    background-color: #fff;
    margin: auto;
    padding: 20px 30px;
    border-radius: 8px;
    width: 350px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

    .modal-client-content h2 {
        margin-top: 0;
        font-size: 20px;
        text-align: center;
    }

.client-form-label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
}

.client-form-control {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

    .client-form-control:focus {
        border-color: #3b82f6;
        outline: none;
    }

.modal-client-buttons {
    margin-top: 20px;
    text-align: center;
}

a.upload-button {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.2s ease;
    text-decoration: none;
    width: 160px;
    box-sizing: border-box;
}

    a.upload-button:hover {
        background-color: #2563eb;
    }

.data-table tbody tr.goal-row-daily {
    background-color: #e0f7fa !important;
}

.data-table tbody tr.goal-row-weekly {
    background-color: #f1f8e9 !important;
}

.data-table tbody tr.goal-row-monthly {
    background-color: #fff3e0 !important;
}

.data-table tbody tr.goal-row-quarterly {
    background-color: #f3e5f5 !important;
}

.data-table tbody tr.goal-row-yearly {
    background-color: #ede7f6 !important;
}

.login-box input {
    font-size: 16px;
    padding: 14px 18px;
}

.login-box button {
    font-size: 16px;
    padding: 12px 18px;
}

.login-box h1 {
    font-size: 18px;
}

@media (max-width: 440px) {
    .topbar {
        padding: 0 12px;
    }

        .topbar .logout {
            font-size: 13px;
            padding: 8px 12px;
        }

        .topbar .user-info {
            gap: 8px;
        }

    .main-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .main-content {
        padding: 16px;
    }

    .filters-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-select,
    .upload-button {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .data-table {
        font-size: 12px;
    }

        .data-table thead {
            display: none;
        }

        .data-table tr {
            display: block;
            margin-bottom: 12px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
            padding: 10px;
        }

        .data-table td {
            display: block;
            width: 100%;
            text-align: left;
            padding: 6px 0;
            border: none;
        }

            .data-table td::before {
                content: attr(data-label);
                font-weight: 600;
                display: block;
                color: #6b7280;
                margin-bottom: 2px;
                font-size: 11px;
            }

    .pagination-line {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .pagination-button {
        min-width: auto;
        padding: 5px 8px;
        font-size: 13px;
        line-height: 1;
    }

    .modal-client-content {
        width: 94%;
        padding: 16px;
    }

    .modal-client-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .client-form-control {
        font-size: 14px;
        padding: 10px 12px;
    }

    a.upload-button,
    button.upload-button {
        width: 100%;
        font-size: 14px;
        padding: 10px 12px;
    }

    h2 {
        font-size: 18px;
    }
}
