body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 32px auto;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

h1, h2 {
    margin-top: 0;
    color: #111827;
}

form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px 24px;
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    box-sizing: border-box;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

button {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    transition: transform 0.05s ease, box-shadow 0.05s ease, background 0.1s ease;
}

button:hover {
    background: #1d4ed8;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.full-width {
    grid-column: 1 / -1;
}

.messages {
    margin-bottom: 16px;
}

.alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.alert-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.week-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.week-filter input[type="date"] {
    max-width: 180px;
}

.day-column {
    background: #f9fafb;
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
}

.day-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: #111827;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.log-item {
    padding: 8px 10px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.log-desc {
    white-space: pre-wrap;
    color: #111827;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.ticket-card {
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    font-size: 0.9rem;
    transition: box-shadow 0.12s ease, transform 0.08s ease, border-color 0.12s ease;
}

.ticket-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #6b7280;
}

.ticket-card-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.ticket-card-meta {
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.ticket-card-body {
    color: #111827;
    margin-bottom: 8px;
}

.ticket-card-body p {
    margin: 0;
    line-height: 1.4;
}

.ticket-attachment {
    margin-top: 6px;
    font-size: 0.85rem;
}

.ticket-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ticket-status-new {
    background: #eff6ff;
    color: #1d4ed8;
}

.ticket-status-in-progress {
    background: #fef3c7;
    color: #92400e;
}

.ticket-status-closed {
    background: #ecfdf3;
    color: #166534;
}

.ticket-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.ticket-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.ticket-link:hover {
    text-decoration: underline;
}

.comments-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-comment {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 0.85rem;
}

.ticket-comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.ticket-comment-body {
    color: #111827;
    white-space: pre-wrap;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 0.9rem;
}

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

.users-table th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.users-table tr:nth-child(even) td {
    background: #f9fafb;
}

.app-footer {
    margin-top: 32px;
    padding: 16px 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

