/* 
 * Window & Monitor Manager Modal Styles (Alt+Tab Mobile View)
 */

 .window-manager-content {
    background: rgba(22, 22, 28, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.wm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wm-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.wm-actions {
    display: flex;
    gap: 8px;
}

.wm-actions .icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wm-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wm-section-title {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Monitors Grid */
.wm-monitors {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.wm-monitor-card {
    min-width: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wm-monitor-card.active {
    background: rgba(255, 107, 0, 0.2);
    border-color: #FF6B00;
}

.wm-monitor-card:active {
    transform: scale(0.95);
}

.wm-monitor-icon {
    width: 48px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #bbb;
}

.wm-monitor-card.active .wm-monitor-icon {
    color: #FF6B00;
}

.wm-monitor-name {
    font-size: 12px;
    color: #eee;
}

/* Windows Grid (Alt+Tab) */
.wm-windows {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.wm-window-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wm-window-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.wm-window-card:active {
    transform: scale(0.95);
}

.wm-window-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF6B00;
}

.wm-window-title {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* Mission Control: Stats & Apps */
.wm-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.wm-stat-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.wm-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.wm-stat-val {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-top: 4px;
}

.wm-stat-sub {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.wm-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.wm-app-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.wm-app-card:active {
    transform: scale(0.95);
    background: rgba(255,255,255,0.1);
}

.wm-app-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 107, 0, 0.1);
    color: #FF6B00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-app-name {
    font-size: 11px;
    color: #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.wm-window-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.wm-btn-kill {
    background: rgba(255, 50, 50, 0.15);
    color: #ff4a4a;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.wm-btn-kill:active {
    background: rgba(255, 50, 50, 0.3);
}
