/* Styly pre obsah stranky */
.content-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-top: 24px;
}

.content-card h2 {
    margin-top: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.content-card p {
    color: var(--muted);
}

.main-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standardized Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.page-header .header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Legacy support */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Standardized Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(240, 107, 53, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 107, 53, 0.35);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.35);
}

.btn-danger {
    background: #dc3545;
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

.btn:active {
    transform: translateY(0);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.text-right {
    text-align: right;
}

/* Standardized Badges */
.badge {
    display: inline-block;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
}

.badge-success {
    background-color: #10b981;
    color: #fff;
}

.badge-danger {
    background-color: #ef4444;
    color: #fff;
}

.badge-warning {
    background-color: #fbbf24;
    color: #000;
}

.badge-info {
    background-color: #3b82f6;
    color: #fff;
}

.badge-secondary {
    background-color: #6b7280;
    color: #fff;
}

.badge-dark {
    background-color: #1f2937;
    color: #fff;
}

/* Standardized Alerts */
.alert,
.error-message,
.success-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success,
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

.alert-error,
.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #ef4444;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border-color: #3b82f6;
}

/* Action buttons */
.btn-action {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.btn-action:hover {
    transform: scale(1.2);
}

.btn-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pagination-link {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.pagination-link:hover {
    background: var(--accent-dark);
}

.pagination-info {
    color: var(--muted);
    font-size: 14px;
}

/* Forms */
.form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.form-control,
.form-select,
select.form-control,
textarea.form-control,
input.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 107, 53, 0.1);
    background: #fff;
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

/* Empty message */
.empty-message {
    text-align: center;
    padding: 40px;
    color: var(--muted);
}

/* User details table */
.user-details {
    margin: 20px 0;
}

.user-details h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.details-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
}

.details-table th {
    text-align: left;
    padding: 10px;
    background: #f8f9fa;
    font-weight: 600;
    width: 30%;
}

.details-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .content-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
