/* ===============================================
   PREMIUM CONTENT STYLES (Lists, Forms, Tables)
   =============================================== */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.page-header .actions {
    display: flex;
    gap: 0.75rem;
}

/* Data Card (Wraps Tables) */
.data-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.data-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.data-card .toolbar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Premium Table */
.table-container {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    position: relative;
}

table.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

table.premium-table thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

table.premium-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background-color 0.2s ease;
}

table.premium-table tbody tr:last-child {
    border-bottom: none;
}

table.premium-table tbody tr:hover {
    background-color: var(--primary-50);
}

table.premium-table td {
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    color: var(--gray-700);
    vertical-align: middle;
    border-bottom: 1px solid var(--gray-100);
}

table.premium-table tbody tr:last-child td {
    border-bottom: none;
}

table.premium-table td.num {
    font-family: 'Roboto Mono', monospace;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge-primary {
    background-color: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.badge-success {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-600);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-neutral {
    background-color: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

/* Form Layouts */
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
}

/* Map in Forms */
.form-map-container {
    height: 400px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    overflow: hidden;
    position: relative;
}

/* Buttons & Inputs Polish */
input[type="text"],
input[type="search"],
select,
textarea {
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(28, 142, 255, 0.15);
    outline: none;
}

button.primary,
a[role="button"]:not(.secondary):not(.outline) {
    background-color: var(--primary-600);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}

button.primary:hover,
a[role="button"]:not(.secondary):not(.outline):hover {
    background-color: var(--primary-700);
}

/* Helper Text */
.page-help {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--primary-50);
    border-radius: 8px;
    border: 1px solid var(--primary-100);
    color: var(--primary-800);
    font-size: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.page-help::before {
    content: "💡";
    font-size: 1.2rem;
}