.games-manager-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

/* Header */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 1px solid #808080;
    flex-shrink: 0;
}

.games-header h2 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.category-filter select {
    background: white;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 100px;
}

/* Games Grid */
.games-grid {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    background: white;
    margin: 4px;
    border: 1px inset #c0c0c0;
}

.game-card {
    background: #f0f0f0;
    border: 1px outset #c0c0c0;
    padding: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.game-card:hover {
    background: #e8e8e8;
    border: 1px outset #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.game-card:active {
    border: 1px inset #c0c0c0;
    transform: translateY(0);
}

.game-icon {
    font-size: 32px;
    text-align: center;
    margin-bottom: 4px;
}

.game-info {
    flex: 1;
    text-align: center;
}

.game-name {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
    color: #000;
}

.game-description {
    font-size: 10px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.3;
}

.game-category {
    font-size: 9px;
    color: #888;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
}

.game-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.play-btn {
    background: linear-gradient(to bottom, #66dd66 0%, #44bb44 100%);
    border: 1px outset #44bb44;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.play-btn:hover {
    background: linear-gradient(to bottom, #77ee77 0%, #55cc55 100%);
    border: 1px outset #55cc55;
}

.play-btn:active {
    background: linear-gradient(to bottom, #44bb44 0%, #66dd66 100%);
    border: 1px inset #44bb44;
}

/* No Games State */
.no-games {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
}

.no-games-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-games-text {
    font-size: 14px;
    font-style: italic;
}

/* Status Bar */
.games-status {
    padding: 4px 16px;
    background: #c0c0c0;
    border-top: 1px solid #808080;
    font-size: 10px;
    color: #666;
    flex-shrink: 0;
}

/* Game Player */
.game-player {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
}

.game-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 1px solid #808080;
    flex-shrink: 0;
}

.game-player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-player-icon {
    font-size: 20px;
}

.game-player-name {
    font-weight: bold;
    font-size: 12px;
    color: #000;
}

.game-player-description {
    font-size: 10px;
    color: #666;
}

.game-player-controls {
    display: flex;
    gap: 4px;
}

.game-control-btn {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.game-control-btn:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

.game-control-btn:active {
    background: linear-gradient(to bottom, #c0c0c0 0%, #dfdfdf 100%);
    border: 1px inset #c0c0c0;
}

.game-player-content {
    flex: 1;
    position: relative;
    background: #000;
    margin: 4px;
    border: 1px inset #c0c0c0;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #131722;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #d1d4dc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    z-index: 10;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #2a2e39;
    border-top: 3px solid #2962ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    color: #d1d4dc;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar styling */
.games-grid::-webkit-scrollbar {
    width: 16px;
}

.games-grid::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px inset #c0c0c0;
}

.games-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 1px outset #c0c0c0;
}

.games-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d0d0d0 100%);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 8px;
        padding: 12px;
    }
    
    .game-card {
        padding: 8px;
    }
    
    .game-icon {
        font-size: 24px;
    }
}