/* Custom styles uzupełniające Bootstrap 5 */

body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.navbar-brand {
    font-weight: 700;
}

/* Login */
.login-card {
    max-width: 280px;
    margin: 80px auto;
}

.login-card .form-control {
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
}

.login-card .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.login-card .btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
}

.login-card .card-body {
    padding: 1.2rem;
}

.login-card .card-title {
    font-size: 1.15rem;
}

/* Tabela klientów - czysty styl */
.client-list {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.client-list table {
    margin: 0;
}

.client-list thead th {
    background: none;
    border-top: none;
    border-bottom: 1px solid #e9ecef;
    color: #999;
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px 10px;
}

.client-list tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 14px;
    border-bottom: 1px solid #f4f4f5;
}

.client-list tbody tr:last-child td {
    border-bottom: none;
}

.client-list tbody tr:hover {
    background-color: #fafbff;
}

.client-list .col-nr {
    color: #ccc;
    font-size: 13px;
    width: 35px;
}

.client-list .client-name {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.client-list .client-name:hover {
    color: #4a7cff;
}

.client-list .firma-text {
    color: #888;
}

.client-list .date-col {
    white-space: nowrap;
    color: #555;
}

/* Ikonki akcji */
.action-icons {
    white-space: nowrap;
}

.action-icons a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 6px;
    border-radius: 5px;
    transition: all 0.15s;
    position: relative;
}

.action-icons a:hover {
    color: #4a7cff;
    background-color: #eef2ff;
}

.action-icons a.link-delete:hover {
    color: #dc3545;
    background-color: #fef2f2;
}

/* CSS Tooltipy */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 100;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border: 4px solid transparent;
    border-top-color: #333;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 100;
}

[data-tooltip]:hover::after,
[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Statusy */
.status-expired {
    background-color: #fef2f2;
}

.status-expired:hover {
    background-color: #fee2e2 !important;
}

.status-warning {
    background-color: #fffbeb;
}

.status-warning:hover {
    background-color: #fef3c7 !important;
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 10px;
}

/* Sortowanie */
.sort-link {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.sort-link:hover {
    color: #4a7cff;
}

/* Formularze */
.form-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 16px;
}

/* Podgląd wiadomości */
.msg-preview {
    background: #f9fafb;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    cursor: text;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Wskaźnik powiadomień */
.notif-indicator {
    color: #3b82f6;
    font-size: 13px;
    margin-left: 4px;
    cursor: default;
    position: relative;
}

/* Stopka */
footer {
    margin-top: 40px;
    padding: 16px 0;
    border-top: 1px solid #e9ecef;
    color: #aaa;
    font-size: 0.85em;
}
