/* Основен стил за cars.dinkosto.org */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6f8;
    color: #222;
}

.page-wrapper {
    max-width: 1100px;
    margin: 20px auto 40px auto;
    padding: 0 16px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f2933;
}

.user-info {
    font-size: 14px;
    color: #555;
}

.user-info a {
    color: #2563eb;
    text-decoration: none;
    margin-left: 8px;
}

.user-info a:hover {
    text-decoration: underline;
}

.nav-bar {
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
    font-size: 14px;
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 999px;
}

.nav-link.active,
.nav-link:hover {
    background: #2563eb;
    color: #ffffff;
}

th .sort-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

th .sort-link:hover {
    text-decoration: underline;
}

.card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
    margin-bottom: 18px;
}

.card h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #111827;
}

.messages {
    margin-bottom: 14px;
}

.msg-error,
.msg-success {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 8px;
}

.msg-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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

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

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

table.bordertable th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

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

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select {
    padding: 5px 7px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.btn,
input.submit,
input[type="submit"],
button.submit {
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-secondary {
    background: #6b7280;
}

.btn:hover,
input.submit:hover,
input[type="submit"]:hover,
button.submit:hover {
    background: #1d4ed8;
}

.btn-secondary:hover {
    background: #4b5563;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #eff6ff 0, #f4f6f8 55%, #e5e7eb 100%);
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 24px 20px 24px;
    width: 360px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
}

.login-card h1 {
    margin: 0 0 4px 0;
    font-size: 22px;
    color: #111827;
}

.login-card .subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
}

.login-card label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin: 8px 0 4px 0;
}

.login-card input[type="email"],
.login-card input[type="password"] {
    width: 100%;
}

.login-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 10px;
}

.tag-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 500;
}

