/* MA Zeiten Frontend Portal Styles */

.ma-zeiten-portal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login Form */
.ma-zeiten-login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ma-zeiten-login-container h2 {
    margin: 0 0 25px 0;
    text-align: center;
    color: #333;
    font-size: 24px;
}

.ma-zeiten-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.ma-zeiten-form-group {
    margin-bottom: 20px;
}

.ma-zeiten-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
}

.ma-zeiten-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ma-zeiten-form-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ma-zeiten-submit-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ma-zeiten-submit-btn:hover {
    background: #1d4ed8;
}

/* Dashboard */
.ma-zeiten-dashboard {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
}

.ma-zeiten-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.ma-zeiten-header h2 {
    margin: 0;
    color: #1f2937;
}

.ma-zeiten-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ma-zeiten-user-info span {
    font-weight: 500;
    color: #374151;
}

.ma-zeiten-logout-form {
    display: inline;
}

.ma-zeiten-logout-link {
    background: none;
    border: none;
    padding: 0;
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.ma-zeiten-logout-link:hover {
    text-decoration: underline;
}

.ma-zeiten-year-select {
    margin-bottom: 20px;
}

.ma-zeiten-year-select label {
    margin-right: 10px;
    font-weight: 500;
}

.ma-zeiten-year-select select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.ma-zeiten-employee-info {
    background: #f9fafb;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

/* Table */
.ma-zeiten-table-wrapper {
    overflow-x: auto;
}

.ma-zeiten-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ma-zeiten-table th,
.ma-zeiten-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.ma-zeiten-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.ma-zeiten-table tbody tr:hover {
    background: #f9fafb;
}

.ma-zeiten-table .positive {
    color: #059669;
}

.ma-zeiten-table .negative {
    color: #dc2626;
}

.ma-zeiten-hours {
    color: #9ca3af;
    font-size: 12px;
}

.ma-zeiten-carryover {
    background: #fffbeb;
}

.ma-zeiten-carryover td {
    border-bottom: 2px solid #fcd34d;
}

.ma-zeiten-totals {
    background: #f3f4f6;
    font-weight: 600;
}

.ma-zeiten-totals td {
    border-top: 2px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.ma-zeiten-balance {
    background: #f0fdf4;
}

.ma-zeiten-balance td {
    font-weight: 600;
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .ma-zeiten-portal {
        padding: 10px;
    }

    .ma-zeiten-login-container {
        margin: 20px auto;
        padding: 20px;
    }

    .ma-zeiten-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ma-zeiten-table {
        font-size: 12px;
    }

    .ma-zeiten-table th,
    .ma-zeiten-table td {
        padding: 8px 6px;
    }

    .ma-zeiten-hours {
        display: block;
    }
}
