/*
* LiveSpace.Cloud-specific styling that extends BlazorCommon
* Only contains styles actually used in the application
*/

/* Shared page container */
.page-container {
    padding: 24px 32px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* For pages without grids that need scrolling (dashboard, settings, account detail) */
.page-container.scrollable {
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.page-subtitle {
    font-size: 0.85rem;
    opacity: 0.5;
    margin: 4px 0 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.6;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.4;
}

.empty-state h4 { margin: 0 0 8px; }

/* Shared form styles */
.form-field { margin-bottom: 16px; }
.form-field label { font-size: 0.8rem; font-weight: 500; margin-bottom: 4px; display: block; opacity: 0.8; }
.required { color: #ef4444; }
.form-section { padding: 8px 0; }

/* Shared grid styles */
.grid-card { border-radius: 8px; overflow: hidden; flex: 1; min-height: 0; }
.grid-card .k-grid { height: 100% !important; }
.grid-card .k-grid, .grid-card .k-grid-header, .grid-card .k-grid td, .grid-card .k-grid th { border: none !important; }
.grid-card .k-grid .k-table-row { border-bottom: 1px solid rgba(128,128,128,0.08) !important; }
.grid-card .k-grid .k-table-row:hover { background: rgba(128,128,128,0.06) !important; }
.grid-card .k-grid .k-grid-header .k-table-th { background: transparent !important; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.5; border-bottom: 1px solid rgba(128,128,128,0.15) !important; }
.grid-card .k-pager { border: none !important; background: transparent !important; }

/* Shared stats bar */
.stats-bar { display: flex; gap: 12px; margin-bottom: 20px; }
.stat-chip { display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; border: 1px solid rgba(128,128,128,0.2); }
.stat-chip .stat-value { font-weight: 700; }
.stat-chip .stat-label { opacity: 0.6; }

/* Shared status dots */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.status-dot.active { background: #22c55e; }
.status-dot.inactive { background: #ef4444; }

.action-buttons { display: flex; gap: 2px; }
.desktop-only { display: block; }
.mobile-cards { display: none; }

/* Dashboard container */
.dashboard-container {
    padding: 1rem;
}

/* Stat items in dashboard */
.stat-item {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-container { padding: 16px; }
    .page-header { flex-direction: column; gap: 12px; }
    .header-actions { flex-wrap: wrap; width: 100%; }
    .stats-bar { flex-wrap: wrap; }
    .mobile-cards { display: block; }
    .desktop-only { display: none !important; }
}

/* Styled scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 128, 128, 0.5);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Primary action buttons — ghost/outline style */
.header-actions .k-button-solid-primary {
    background: transparent !important;
    border: 1px solid rgba(99,102,241,0.4) !important;
    color: #6366f1 !important;
}

.header-actions .k-button-solid-primary:hover {
    background: rgba(99,102,241,0.1) !important;
    border-color: #6366f1 !important;
}

/* Telerik TabStrip active tab highlighting */
.k-tabstrip-items .k-item {
    opacity: 0.5;
    transition: opacity 0.15s;
}

.k-tabstrip-items .k-item.k-active,
.k-tabstrip-items .k-item.k-selected {
    opacity: 1;
    border-bottom: 2px solid #6366f1 !important;
}

/* Make Telerik dialogs responsive on mobile */
@media (max-width: 768px) {
    .k-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 0 auto;
    }

    .k-dialog .row {
        flex-direction: column;
    }

    .k-dialog .col-md-6,
    .k-dialog .col-md-4,
    .k-dialog .col-md-5,
    .k-dialog .col-md-3 {
        width: 100%;
        max-width: 100%;
    }
}