/* Registry Page Layout */
.registry-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: calc(100vh - 60px);
    padding: 2rem;
    text-align: left;
}

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

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
}

.table-wrapper {
    flex: 1;
    background: #242424;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#registry-table {
    width: 100%;
}

/* Tabulator Dark Theme Overrides */
.tabulator {
    background-color: transparent;
    border: none;
    font-size: 0.9rem;
}

.tabulator .tabulator-header {
    background-color: #2a2a2a;
    border-bottom: 2px solid #3498db;
}

.tabulator .tabulator-header .tabulator-col {
    background-color: transparent;
    border-right: 1px solid #333;
}

.tabulator .tabulator-header .tabulator-col-content {
    padding: 12px 16px;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-title {
    color: #e0e0e0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
    background-color: #242424;
    border-bottom: 1px solid #333;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:nth-child(even) {
    background-color: #2a2a2a;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
    background-color: #333;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
    padding: 12px 16px;
    color: #d0d0d0;
    border-right: 1px solid #333;
}

.tabulator .tabulator-tableholder .tabulator-placeholder {
    color: #888;
    padding: 2rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-icon {
    background: #333;
    border: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background: #444;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #444;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Desktop/Mobile visibility */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Card List */
.card-list {
    flex-direction: column;
    gap: 0.5rem;
}

.card-item {
    background: #242424;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.card-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-type {
    font-size: 0.7rem;
    color: #3498db;
    margin-left: 0.5rem;
}

.card-details {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.15rem;
}

.card-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.card-actions .btn-icon {
    padding: 0.3rem 0.4rem;
    font-size: 0.8rem;
}

.card-empty {
    text-align: center;
    color: #888;
    padding: 2rem;
    background: #242424;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }

    .registry-page {
        padding: 1rem;
    }

    .page-header {
        margin-bottom: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .page-header .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}
