/* General Layout */
body {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tas-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header */
.tas-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tas-title h1 {
    font-size: 28px;
    color: #333;
    margin: 0;
}

.tas-title p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.tas-user {
    text-align: right;
}

.tas-user strong {
    display: block;
    font-size: 16px;
    color: #555;
}

.tas-user span {
    display: block;
    font-size: 12px;
    color: #999;
}

/* Dashboard Metrics & Cards */
.tas-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.tas-card.metric {
    background: #f7f9fc;
    border: 1px solid #e0e2e5;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tas-card.metric h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
}

.tas-card.metric .val {
    font-size: 28px;
    font-weight: bold;
    color: #007bff;
}

.tas-card.metric small {
    display: block;
    color: #999;
    margin-top: 5px;
}

/* Table Design */
.tas-card.table {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e2e5;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.tas-card.table table {
    width: 100%;
    border-collapse: collapse;
}

.tas-card.table th, .tas-card.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.tas-card.table th {
    background-color: #f7f9fc;
    font-weight: bold;
    color: #555;
}

/* Buttons */
.tas-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tas-btn:hover {
    background-color: #0056b3;
}

.tas-btn.whatsapp {
    background-color: #25d366;
    color: #fff;
}

.tas-btn.whatsapp:hover {
    background-color: #128c7e;
}

.tas-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tas-actions .tas-btn {
    flex: 1;
    text-align: center;
}

/* Worker Grid */
.tas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.tas-card.tas-worker {
    background: #f7f9fc;
    border: 1px solid #e0e2e5;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tas-card.tas-worker h3 {
    margin: 0 0 5px;
    font-size: 18px;
    color: #333;
}

.tas-card.tas-worker .muted {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.tas-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tas-metrics span {
    font-size: 12px;
    color: #666;
}

.tas-metrics strong {
    display: block;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.tas-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tas-actions .tas-btn {
    flex: 1;
    text-align: center;
}

/* Login Page */
.tas-login {
    text-align: center;
    padding: 40px;
    max-width: 400px;
    margin: 40px auto;
}

.tas-login .tas-brand {
    margin-bottom: 20px;
}

.tas-login .tas-brand img {
    max-width: 80px;
    margin-bottom: 10px;
}

.tas-login h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.tas-login p {
    font-size: 14px;
    color: #888;
    margin: 5px 0 20px;
}

.tas-field {
    text-align: left;
    margin-bottom: 15px;
}

.tas-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.tas-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.tas-actions .tas-remember {
    font-size: 12px;
    color: #777;
}

.tas-foot {
    margin-top: 20px;
    font-size: 12px;
}

.tas-foot a {
    color: #007bff;
    text-decoration: none;
}