/* VRX Remote Desktop - Minimal Professional Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1d29;
    color: #e2e8f0;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #0f172a;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #334155;
}

.logo {
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    font-weight: 600;
    color: #f1f5f9;
}

.user-email {
    font-size: 0.875rem;
    color: #94a3b8;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #1e293b;
    color: #f1f5f9;
}

.nav-item.active {
    background: #1e293b;
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #334155;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: 0.5rem;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    padding: 1.5rem 2rem;
    background: #0f172a;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
}

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

/* Pages */
.page {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: none;
}

.page.active {
    display: block;
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: #1e293b;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1.25rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: #94a3b8;
    font-size: 0.875rem;
}

.quick-actions {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.quick-actions h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #f1f5f9;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #f1f5f9;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.action-btn:hover {
    background: #334155;
    border-color: #3b82f6;
}

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

.page-header h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
}

.sessions-list {
    display: grid;
    gap: 1rem;
}

.session-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.session-info h4 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.session-info p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Controller */
.controller-container {
    max-width: 1200px;
    margin: 0 auto;
}

.controller-header {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.connection-info h2 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.status-info {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.status-disconnected {
    color: #ef4444;
}

.status-connected {
    color: #10b981;
}

.connection-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.session-input {
    padding: 0.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    color: #f1f5f9;
    min-width: 200px;
}

.session-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.screen-container {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.remote-screen {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 0.375rem;
    cursor: crosshair;
    display: none;
}

.connection-message {
    text-align: center;
    color: #94a3b8;
}

.connection-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

.connection-message h3 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.control-group {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.control-group h4 {
    color: #f1f5f9;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.key-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
}

.key-btn {
    padding: 0.5rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.375rem;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.key-btn:hover {
    background: #334155;
    color: #f1f5f9;
    border-color: #3b82f6;
}

/* Buttons */
.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #334155;
    border-color: #3b82f6;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Info Card */
.info-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-card i {
    color: #3b82f6;
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.info-card h4 {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* Token Instructions */
.token-instructions {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.token-instructions h3 {
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.token-instructions ol {
    color: #94a3b8;
    padding-left: 1.5rem;
}

.token-instructions li {
    margin-bottom: 0.5rem;
}

.token-instructions a {
    color: #3b82f6;
    text-decoration: none;
}

.token-instructions a:hover {
    text-decoration: underline;
}

.token-example {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.token-example h4 {
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.token-example pre {
    background: #1e293b;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
}

.token-example code {
    color: #10b981;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

/* Loading */
.loading {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 240px;
    }
    
    .controller-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .connection-controls {
        flex-direction: column;
    }
    
    .session-input {
        min-width: auto;
    }
}