/* =========================
   LOGIN PAGE
========================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.login-body {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at top right,
            rgba(25, 211, 197, 0.16),
            transparent 35%
        ),
        linear-gradient(
            rgba(3, 12, 20, 0.94),
            rgba(3, 12, 20, 0.98)
        ),
        url('../images/control-bg.png') center/cover fixed;
    color: #d7fdf8;
    font-family: Arial, Helvetica, sans-serif;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 38px;
    border: 1px solid rgba(91, 236, 220, 0.22);
    border-radius: 18px;
    background: rgba(4, 22, 31, 0.82);
    backdrop-filter: blur(18px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.42),
        0 0 30px rgba(49, 237, 218, 0.08);
}

.logo-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border: 1px solid rgba(67, 255, 231, 0.48);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 88, 91, 0.35);
    color: #6ffff0;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 0 24px rgba(49, 237, 218, 0.16);
}

.login-card h1 {
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    text-align: center;
}

.login-card .subtitle {
    margin: 10px 0 28px;
    color: #78aaa6;
    text-align: center;
    line-height: 1.5;
}

.login-card form {
    display: flex;
    flex-direction: column;
}

.login-card label {
    margin-bottom: 7px;
    color: #a6d8d3;
    font-size: 13px;
    font-weight: 600;
}

.login-card input {
    width: 100%;
    margin-bottom: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(91, 236, 220, 0.22);
    border-radius: 10px;
    background: rgba(3, 17, 24, 0.78);
    color: #effffc;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.login-card input:focus {
    border-color: rgba(75, 255, 233, 0.65);
    background: rgba(5, 35, 43, 0.9);
    box-shadow: 0 0 0 3px rgba(45, 225, 206, 0.1);
}

.login-card button {
    width: 100%;
    margin-top: 4px;
    padding: 13px 16px;
    border: 1px solid rgba(82, 255, 233, 0.45);
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            rgba(21, 164, 151, 0.92),
            rgba(12, 109, 111, 0.92)
        );
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 155, 145, 0.2);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.login-card button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(15, 155, 145, 0.28);
}

.error-message {
    margin-bottom: 20px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 94, 114, 0.35);
    border-radius: 9px;
    background: rgba(151, 22, 42, 0.2);
    color: #ffadb7;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 520px) {
    .login-body {
        padding: 15px;
    }

    .login-card {
        padding: 28px 22px;
    }
}
.control-dashboard {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(
            rgba(3, 12, 20, 0.92),
            rgba(3, 12, 20, 0.96)
        ),
        url('../images/control-bg.png') center/cover fixed;
    color: #d7fdf8;
}

.background-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at top right,
            rgba(25, 211, 197, 0.12),
            transparent 36%
        );
}

.control-header {
    position: relative;
    z-index: 2;
    min-height: 78px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(82, 243, 225, 0.18);
    background: rgba(3, 14, 23, 0.88);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(67, 255, 231, 0.45);
    background: rgba(13, 88, 91, 0.32);
    box-shadow: 0 0 22px rgba(49, 237, 218, 0.15);
    color: #6ffff0;
    font-weight: 800;
}

.brand-area h1 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
}

.brand-area span {
    display: block;
    margin-top: 3px;
    color: #77aaa7;
    font-size: 12px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-information {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.admin-information span {
    color: #6f9f9c;
    font-size: 11px;
}

.admin-information strong {
    color: #d9fffa;
    font-size: 14px;
}

.logout-button {
    padding: 9px 15px;
    border: 1px solid rgba(255, 86, 105, 0.45);
    border-radius: 8px;
    background: rgba(151, 22, 42, 0.25);
    color: #ffb3bc;
    text-decoration: none;
}

.control-layout {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
}

.control-sidebar {
    border-right: 1px solid rgba(82, 243, 225, 0.16);
    background: rgba(2, 15, 23, 0.82);
    backdrop-filter: blur(18px);
    padding: 18px;
    overflow-y: auto;
}

.sidebar-section + .sidebar-section {
    margin-top: 24px;
}

.sidebar-title {
    margin-bottom: 11px;
    color: #85d9d1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.count-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 172, 160, 0.18);
    color: #7af6e9;
}

.owner-selector,
.search-box input {
    width: 100%;
    border: 1px solid rgba(91, 236, 220, 0.2);
    border-radius: 9px;
    padding: 11px 12px;
    background: rgba(4, 28, 36, 0.88);
    color: #dffefa;
    outline: none;
}

.owner-selector option {
    background: #071a22;
    color: white;
}

.search-box {
    margin-bottom: 12px;
}

.sidebar-computer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-computer {
    width: 100%;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(4, 29, 37, 0.66);
    color: #d7fdf8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.sidebar-computer:hover,
.sidebar-computer.selected {
    border-color: rgba(74, 248, 226, 0.4);
    background: rgba(10, 75, 80, 0.46);
}

.computer-status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.computer-online {
    background: #30e590;
    box-shadow: 0 0 10px rgba(48, 229, 144, 0.65);
}

.computer-offline {
    background: #ff5e72;
    box-shadow: 0 0 10px rgba(255, 94, 114, 0.45);
}

.sidebar-computer-info {
    min-width: 0;
    flex: 1;
}

.sidebar-computer-info strong,
.sidebar-computer-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-computer-info strong {
    color: #f1fffd;
    font-size: 13px;
}

.sidebar-computer-info small {
    margin-top: 3px;
    color: #79aaa6;
    font-size: 11px;
}

.device-new-tag {
    padding: 4px 7px;
    border-radius: 20px;
    background: rgba(255, 187, 51, 0.16);
    color: #ffd06b;
    font-size: 9px;
    text-transform: uppercase;
}

.sidebar-empty {
    padding: 20px 10px;
    color: #668f8b;
    text-align: center;
    font-size: 12px;
}

.control-main {
    padding: 22px;
    overflow-y: auto;
}

.status-summary {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
}

.status-summary-card {
    padding: 15px;
    border: 1px solid rgba(91, 236, 220, 0.16);
    border-radius: 11px;
    background: rgba(5, 28, 36, 0.7);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 11px;
}

.summary-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.summary-all {
    background: #5ee9dd;
}

.summary-online {
    background: #30e590;
}

.summary-offline {
    background: #ff5e72;
}

.summary-idle {
    background: #ffbf4a;
}

.status-summary-card small {
    color: #6faaa5;
    display: block;
}

.status-summary-card strong {
    display: block;
    margin-top: 2px;
    color: #f1fffd;
    font-size: 20px;
}

.computer-detail-panel {
    min-height: 610px;
    padding: 24px;
    border: 1px solid rgba(91, 236, 220, 0.18);
    border-radius: 14px;
    background: rgba(4, 22, 31, 0.76);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.detail-placeholder {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #719d99;
    text-align: center;
}

.placeholder-icon {
    margin-bottom: 12px;
    font-size: 46px;
}

.detail-placeholder h2 {
    margin: 0 0 8px;
    color: #dcfffb;
}

.detail-placeholder p {
    max-width: 420px;
    line-height: 1.6;
}

.detail-header {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.device-heading-line {
    display: flex;
    align-items: center;
    gap: 11px;
}

.detail-header h2 {
    margin: 0;
    color: white;
    font-size: 24px;
}

.detail-header p {
    margin-top: 6px;
    color: #72aaa5;
}

.detail-status {
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.detail-status-online {
    background: rgba(48, 229, 144, 0.15);
    color: #5effaa;
}

.detail-status-offline {
    background: rgba(255, 94, 114, 0.16);
    color: #ff8897;
}

.rename-device-button {
    padding: 9px 13px;
    border: 1px solid rgba(69, 240, 220, 0.32);
    border-radius: 8px;
    background: rgba(14, 98, 100, 0.3);
    color: #9afff4;
    cursor: pointer;
}

.device-command-bar {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid rgba(84, 235, 218, 0.13);
    border-radius: 10px;
    background: rgba(3, 17, 24, 0.56);
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.command-button {
    padding: 10px 15px;
    border: 1px solid rgba(92, 224, 211, 0.2);
    border-radius: 8px;
    background: rgba(7, 47, 55, 0.75);
    color: #bdfdf6;
    cursor: pointer;
}

.command-button.primary-command {
    background: rgba(22, 164, 151, 0.34);
    border-color: rgba(82, 255, 233, 0.4);
}

.command-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.device-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(190px, 1fr));
    gap: 11px;
}

.device-information-card {
    min-height: 90px;
    padding: 15px;
    border: 1px solid rgba(94, 219, 207, 0.12);
    border-radius: 10px;
    background: rgba(4, 31, 39, 0.64);
}

.device-information-card span {
    display: block;
    margin-bottom: 8px;
    color: #6faaa5;
    font-size: 11px;
    text-transform: uppercase;
}

.device-information-card strong {
    color: #e8fffc;
    font-size: 13px;
    word-break: break-word;
}

.device-preview-panel {
    margin-top: 20px;
    border: 1px solid rgba(90, 223, 208, 0.13);
    border-radius: 11px;
    background: rgba(3, 17, 24, 0.6);
    overflow: hidden;
}

.preview-heading {
    padding: 15px;
    border-bottom: 1px solid rgba(90, 223, 208, 0.11);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-heading h3 {
    margin: 0;
    color: #eafffc;
}

.preview-heading p {
    margin-top: 4px;
    color: #6c9e9a;
    font-size: 12px;
}

.preview-status {
    color: #79cfc7;
    font-size: 11px;
    text-transform: uppercase;
}

.preview-placeholder {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #668f8b;
}

.preview-placeholder span {
    margin-bottom: 10px;
    font-size: 38px;
}

@media (max-width: 900px) {
    .control-layout {
        grid-template-columns: 1fr;
    }

    .control-sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(82, 243, 225, 0.16);
    }

    .status-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .control-header {
        padding: 12px;
    }

    .brand-area span,
    .admin-information {
        display: none;
    }

    .control-main {
        padding: 12px;
    }

    .computer-detail-panel {
        padding: 15px;
    }

    .status-summary {
        grid-template-columns: 1fr 1fr;
    }

    .detail-header {
        flex-direction: column;
    }
}

.computer-idle {
    background: #ffbf4a;
    box-shadow: 0 0 10px rgba(255, 191, 74, 0.55);
}

.detail-status-idle {
    background: rgba(255, 191, 74, 0.16);
    color: #ffd477;
}
/* =========================
   TECHMONITOR V2 DEVICE DETAILS
========================= */

.device-title-area {
    min-width: 0;
}

.device-subtitle,
.device-owner-line {
    margin: 7px 0 0;
    line-height: 1.5;
}

.device-owner-line {
    font-size: 13px;
}

.device-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.device-section-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(91, 236, 220, 0.14);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(6, 34, 43, 0.82), rgba(3, 22, 30, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.device-section-card:hover {
    border-color: rgba(91, 236, 220, 0.24);
}

.device-section-wide {
    grid-column: 1 / -1;
}

.device-section-heading {
    margin-bottom: 17px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(91, 236, 220, 0.1);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.device-section-heading h3 {
    margin: 4px 0 0;
    color: #ecfffc;
    font-size: 17px;
}

.section-label {
    display: block;
    color: #59cfc3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.device-property-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.device-property {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(92, 224, 211, 0.09);
    border-radius: 9px;
    background: rgba(2, 18, 25, 0.42);
}

.device-property span {
    display: block;
    margin-bottom: 7px;
    color: #6faaa5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.device-property strong {
    display: block;
    color: #eafffc;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.processor-name {
    margin-bottom: 14px;
    padding: 15px 16px;
    border-left: 3px solid #38d9c8;
    border-radius: 0 9px 9px 0;
    background: rgba(8, 58, 64, 0.38);
    color: #effffc;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.device-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.device-stat-box {
    padding: 15px;
    border: 1px solid rgba(92, 224, 211, 0.1);
    border-radius: 10px;
    background: rgba(2, 18, 25, 0.42);
}

.device-stat-box span {
    display: block;
    margin-bottom: 8px;
    color: #6faaa5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.device-stat-box strong {
    color: #f0fffd;
    font-size: 20px;
}

.usage-value {
    color: #6ffff0;
    font-size: 22px;
}

.usage-summary {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.usage-summary span,
.storage-values span {
    color: #73aaa6;
    font-size: 12px;
}

.usage-summary strong,
.storage-values strong {
    color: #effffc;
    font-size: 14px;
}

.usage-progress {
    width: 100%;
    height: 11px;
    border: 1px solid rgba(92, 224, 211, 0.1);
    border-radius: 999px;
    background: rgba(1, 13, 19, 0.72);
    overflow: hidden;
}

.usage-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #159f95, #43ead8);
    box-shadow: 0 0 14px rgba(67, 234, 216, 0.32);
    transition: width 0.4s ease;
}

.usage-description {
    margin: 11px 0 0;
    color: #6d9d99;
    font-size: 12px;
    line-height: 1.5;
}

.storage-values {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.storage-values > div {
    padding: 12px 13px;
    border: 1px solid rgba(92, 224, 211, 0.09);
    border-radius: 9px;
    background: rgba(2, 18, 25, 0.42);
}

.storage-values span,
.storage-values strong {
    display: block;
}

.storage-values strong {
    margin-top: 5px;
}

.device-preview-panel {
    margin-top: 18px;
}

.preview-placeholder {
    background: radial-gradient(circle at center, rgba(31, 198, 183, 0.08), transparent 58%);
}

@media (max-width: 1050px) {
    .device-section-grid {
        grid-template-columns: 1fr;
    }

    .device-section-wide {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .device-property-grid,
    .device-stat-row,
    .storage-values {
        grid-template-columns: 1fr;
    }

    .device-heading-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .device-section-card {
        padding: 16px;
    }

    .device-command-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .command-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .device-command-bar {
        grid-template-columns: 1fr;
    }
}

.screenshot-preview-container {
    width: 100%;
}

.latest-screenshot-image {
    display: block;
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    border-radius: 12px;
    cursor: zoom-in;
    background: rgba(0, 0, 0, 0.35);
}

.screenshot-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.screenshot-preview-footer span {
    opacity: 0.8;
}

.remote-tools-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 18px;
    background: rgba(12, 18, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.remote-tools-heading,
.terminal-output-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.remote-tools-heading h3 {
    margin: 4px 0 0;
}

.remote-tools-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.remote-tool-tab {
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    cursor: pointer;
}

.remote-tool-tab.active {
    background: rgba(212, 175, 55, 0.16);
    border-color: rgba(212, 175, 55, 0.55);
}

.remote-tool-workspace {
    margin-top: 20px;
}

.terminal-form {
    display: grid;
    gap: 18px;
}

.terminal-field {
    display: grid;
    gap: 8px;
}

.terminal-field label {
    font-size: 13px;
    font-weight: 700;
}

.terminal-field select,
.terminal-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    color: inherit;
    font: inherit;
}

.terminal-field textarea {
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
}

.terminal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.terminal-output-section {
    margin-top: 22px;
}

.terminal-output {
    min-height: 230px;
    max-height: 500px;
    margin-top: 12px;
    padding: 18px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    border-radius: 12px;
    background: #05080d;
    color: #d8f7d3;
    font-family: Consolas, "Courier New", monospace;
    line-height: 1.55;
}

.tool-coming-soon {
    padding: 45px 20px;
    text-align: center;
}

.tool-coming-soon span {
    display: block;
    margin-bottom: 12px;
    font-size: 42px;
}

/* =========================================================
   TECHMONITOR - BROWSER SUPPORT MODAL
   ========================================================= */

.browser-support-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.browser-support-modal.is-open {
    display: flex;
}

.browser-support-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(4, 10, 20, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.browser-support-dialog {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 560px;

    background:
        linear-gradient(
            145deg,
            rgba(18, 30, 49, 0.98),
            rgba(8, 17, 31, 0.99)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.50);

    overflow: hidden;
}


/* HEADER */

.browser-support-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 26px 28px 22px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);
}

.browser-support-eyebrow {
    display: block;

    margin-bottom: 7px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;

    color: #4da3ff;
}

.browser-support-header h2 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;

    color: #ffffff;
}

.browser-support-header p {
    margin: 6px 0 0;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.55);
}

.browser-support-close {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.05);

    color: rgba(255, 255, 255, 0.75);

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.browser-support-close:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    transform: scale(1.04);
}


/* RELAY STATUS */

.browser-support-connection {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 22px 28px 0;
    padding: 14px 16px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.browser-support-status-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 50%;

    background: #f5a623;

    box-shadow:
        0 0 0 5px rgba(245, 166, 35, 0.10);
}

.browser-support-status-dot.connected {
    background: #25c26e;

    box-shadow:
        0 0 0 5px rgba(37, 194, 110, 0.12);
}

.browser-support-status-dot.error {
    background: #ef5350;

    box-shadow:
        0 0 0 5px rgba(239, 83, 80, 0.12);
}

.browser-support-connection small {
    display: block;

    margin-bottom: 3px;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;

    color: rgba(255, 255, 255, 0.40);
}

.browser-support-connection strong {
    display: block;

    font-size: 13px;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.90);
}


/* BODY */

.browser-support-body {
    padding: 24px 28px 28px;
}

.browser-support-field {
    margin-bottom: 20px;
}

.browser-support-field label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    color: rgba(255, 255, 255, 0.82);
}

.browser-support-field select,
.browser-support-field input {
    box-sizing: border-box;

    width: 100%;
    height: 46px;

    padding: 0 14px;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    border-radius: 10px;

    outline: none;

    background: rgba(255, 255, 255, 0.055);

    color: #ffffff;

    font-family: inherit;
    font-size: 13px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.browser-support-field select:focus,
.browser-support-field input:focus {
    border-color: rgba(77, 163, 255, 0.70);

    background: rgba(255, 255, 255, 0.075);

    box-shadow:
        0 0 0 3px rgba(77, 163, 255, 0.10);
}

.browser-support-field select:disabled {
    cursor: wait;
    opacity: 0.55;
}

.browser-support-field select option {
    background: #101c2d;
    color: #ffffff;
}

.browser-support-field small {
    display: block;

    margin-top: 7px;

    font-size: 11px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.38);
}


/* STATUS MESSAGE */

.browser-support-message {
    min-height: 18px;

    margin-top: 4px;

    font-size: 12px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.50);
}

.browser-support-message.success {
    color: #4bd889;
}

.browser-support-message.error {
    color: #ff7774;
}


/* FOOTER */

.browser-support-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 18px 28px 22px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    background: rgba(0, 0, 0, 0.10);
}

.browser-support-cancel,
.browser-support-launch {
    min-width: 120px;
    height: 42px;

    padding: 0 18px;

    border-radius: 10px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease;
}

.browser-support-cancel {
    border:
        1px solid rgba(255, 255, 255, 0.10);

    background:
        rgba(255, 255, 255, 0.045);

    color:
        rgba(255, 255, 255, 0.70);
}

.browser-support-cancel:hover {
    background:
        rgba(255, 255, 255, 0.08);
}

.browser-support-launch {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #2878ff,
            #439cff
        );

    color: #ffffff;

    box-shadow:
        0 8px 24px rgba(40, 120, 255, 0.20);
}

.browser-support-launch:hover:not(:disabled) {
    transform: translateY(-1px);
}

.browser-support-launch:disabled {
    cursor: not-allowed;
    opacity: 0.40;
    box-shadow: none;
}


/* MOBILE */

@media (max-width: 620px) {

    .browser-support-modal {
        padding: 14px;
    }

    .browser-support-dialog {
        max-width: none;
        border-radius: 16px;
    }

    .browser-support-header {
        padding: 22px 20px 18px;
    }

    .browser-support-connection {
        margin:
            18px 20px 0;
    }

    .browser-support-body {
        padding:
            22px 20px;
    }

    .browser-support-footer {
        padding:
            16px 20px 20px;
    }

    .browser-support-cancel,
    .browser-support-launch {
        flex: 1;
        min-width: 0;
    }
}

.browser-support-navigate {
    min-width: 120px;
    height: 42px;
    padding: 0 18px;

    border: 1px solid rgba(77, 163, 255, 0.35);
    border-radius: 10px;

    background: rgba(77, 163, 255, 0.10);
    color: #7db9ff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

.browser-support-navigate:hover:not(:disabled) {
    background: rgba(77, 163, 255, 0.18);
    transform: translateY(-1px);
}

.browser-support-navigate:disabled {
    cursor: not-allowed;
    opacity: 0.40;
}

.browser-support-live {
    margin-bottom: 24px;
}

.browser-support-live-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 10px;
}

.browser-support-live-header strong {
    display: block;

    font-size: 13px;
    color: #ffffff;
}

.browser-support-live-header small {
    display: block;

    margin-top: 4px;

    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
}

#browserScreenStatus {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.48);
}

.browser-support-screen-container {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;

    background: #03070d;
}

.browser-support-screen-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    text-align: center;

    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.browser-support-screen-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    user-select: none;
    cursor: crosshair;
}

/* =========================================
   Browser Support - Larger Remote Workspace
   ========================================= */

.browser-support-dialog {
    width: min(94vw, 1400px);
    max-width: 1400px;

    height: 94vh;
    max-height: 94vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

.browser-support-body {
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    padding-right: 8px;
}

.browser-support-body::-webkit-scrollbar {
    width: 8px;
}

.browser-support-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.browser-support-body::-webkit-scrollbar-thumb {
    background: rgba(120, 170, 220, 0.28);
    border-radius: 10px;
}

.browser-support-body::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 170, 220, 0.42);
}

.browser-support-screen-container {
    position: relative;

    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #03070d;
}

.browser-support-screen-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    user-select: none;
    cursor: crosshair;

    outline: none;
}


/* Header actions */

.browser-screen-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-screen-expand-button {
    border: 1px solid rgba(77, 163, 255, 0.35);
    border-radius: 8px;

    padding: 7px 12px;

    background: rgba(77, 163, 255, 0.10);
    color: #8fc4ff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.browser-screen-expand-button:hover {
    background: rgba(77, 163, 255, 0.18);
}


/* =========================================
   Expanded Remote Control Mode
   ========================================= */

.browser-support-modal.screen-expanded
.browser-support-dialog {
    position: fixed;

    inset: 12px;

    width: auto;
    max-width: none;

    height: calc(100vh - 24px);
    max-height: none;

    margin: 0;
}

.browser-support-modal.screen-expanded
.browser-support-header {
    padding-top: 14px;
    padding-bottom: 14px;
}

.browser-support-modal.screen-expanded
.browser-support-connection {
    display: none;
}

.browser-support-modal.screen-expanded
.browser-support-body {
    display: flex;
    flex-direction: column;

    height: calc(100vh - 145px);

    overflow: hidden;
}

.browser-support-modal.screen-expanded
.browser-support-live {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-height: 0;
    margin-bottom: 0;
}

.browser-support-modal.screen-expanded
.browser-support-screen-container {
    flex: 1;

    height: auto;
    min-height: 0;

    border-radius: 10px;
}

.browser-support-modal.screen-expanded
.browser-support-field,
.browser-support-modal.screen-expanded
.browser-support-message,
.browser-support-modal.screen-expanded
.browser-support-footer {
    display: none;
}


/* Mobile: keep the compact usable layout */

@media (max-width: 768px) {

    .browser-support-dialog {
        width: 96vw;
        max-height: 96vh;
    }

    .browser-support-screen-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .browser-screen-expand-button {
        padding: 6px 9px;
        font-size: 10px;
    }

    .browser-support-modal.screen-expanded
    .browser-support-dialog {
        inset: 4px;

        height: calc(100vh - 8px);
    }
}

/* ============================================================
   MYVIEWER - COMPANY MANAGEMENT
   ============================================================ */

.manage-owners-button {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(70, 220, 210, 0.25);
    border-radius: 8px;
    background: rgba(25, 190, 180, 0.08);
    color: #7ce7df;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.manage-owners-button:hover {
    background: rgba(25, 190, 180, 0.18);
    border-color: rgba(70, 220, 210, 0.5);
}


.owner-management-button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;

    border: 1px solid rgba(72, 211, 202, 0.18);
    border-radius: 9px;

    background: rgba(20, 155, 150, 0.07);
    color: #9adbd6;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.2s ease;
}

.owner-management-button:hover {
    background: rgba(20, 155, 150, 0.15);
    border-color: rgba(72, 211, 202, 0.35);
    color: #d8fffc;
}


/* ============================================================
   MODAL
   ============================================================ */

.owner-manager-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;
}

.owner-manager-modal.is-open {
    display: flex;
}

.owner-manager-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 8, 12, 0.82);
    backdrop-filter: blur(8px);
}

.owner-manager-dialog {
    position: relative;

    width: min(920px, 95vw);
    max-height: 88vh;

    overflow: hidden;

    border: 1px solid rgba(77, 218, 207, 0.18);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(4, 29, 35, 0.99),
            rgba(2, 20, 27, 0.99)
        );

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55);

    color: #dff7f5;
}


/* ============================================================
   HEADER
   ============================================================ */

.owner-manager-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 25px 28px;

    border-bottom:
        1px solid rgba(80, 215, 205, 0.12);
}

.owner-manager-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #5ed7ce;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.6px;
}

.owner-manager-header h2 {
    margin: 0;

    color: #f0fffe;

    font-size: 24px;
}

.owner-manager-header p {
    margin: 7px 0 0;

    color: #7fa9a8;

    font-size: 13px;
}

.owner-manager-close {
    width: 36px;
    height: 36px;

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;

    background: rgba(255,255,255,0.03);
    color: #9ec5c3;

    font-size: 25px;

    cursor: pointer;
}

.owner-manager-close:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}


/* ============================================================
   BODY
   ============================================================ */

.owner-manager-body {
    display: grid;

    grid-template-columns:
        minmax(250px, 0.8fr)
        minmax(350px, 1.4fr);

    gap: 18px;

    padding: 22px 28px 28px;

    overflow-y: auto;
    max-height: calc(88vh - 120px);
}


/* ============================================================
   CARDS
   ============================================================ */

.owner-create-card,
.owner-list-card {
    border:
        1px solid rgba(80, 215, 205, 0.11);

    border-radius: 15px;

    background:
        rgba(0, 12, 18, 0.42);

    padding: 20px;
}

.owner-create-heading span,
.owner-list-heading span {
    display: block;

    margin-bottom: 5px;

    color: #56c9c1;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;
}

.owner-create-heading h3,
.owner-list-heading h3 {
    margin: 0 0 20px;

    color: #e8fffd;

    font-size: 18px;
}


/* ============================================================
   ADD COMPANY FORM
   ============================================================ */

.owner-create-card label {
    display: block;

    margin-bottom: 7px;

    color: #91b9b6;

    font-size: 12px;
}

.owner-create-card input {
    box-sizing: border-box;

    width: 100%;

    padding: 12px 13px;

    border:
        1px solid rgba(75, 207, 198, 0.18);

    border-radius: 9px;

    outline: none;

    background: rgba(0, 10, 15, 0.65);
    color: #eafffd;

    font-size: 14px;
}

.owner-create-card input:focus {
    border-color: rgba(74, 220, 209, 0.55);

    box-shadow:
        0 0 0 3px rgba(42, 196, 186, 0.07);
}

.owner-create-button {
    width: 100%;

    margin-top: 15px;
    padding: 12px 16px;

    border: 0;
    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #28bdb3,
            #158e8b
        );

    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.owner-create-button:hover {
    filter: brightness(1.08);
}

.owner-create-button:disabled {
    opacity: 0.55;
    cursor: wait;
}


/* ============================================================
   MESSAGES
   ============================================================ */

.owner-create-message {
    display: none;

    margin-top: 12px;
    padding: 10px 12px;

    border-radius: 8px;

    font-size: 12px;
    line-height: 1.5;
}

.owner-create-message.success {
    display: block;

    background: rgba(28, 190, 125, 0.09);
    border: 1px solid rgba(45, 218, 148, 0.18);

    color: #7be5b4;
}

.owner-create-message.error {
    display: block;

    background: rgba(220, 70, 80, 0.08);
    border: 1px solid rgba(235, 80, 90, 0.18);

    color: #ff9aa2;
}


/* ============================================================
   COMPANY LIST
   ============================================================ */

.owner-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.owner-refresh-button {
    padding: 7px 11px;

    border:
        1px solid rgba(78, 211, 202, 0.16);

    border-radius: 7px;

    background: transparent;
    color: #79c9c4;

    font-size: 11px;

    cursor: pointer;
}

.owner-refresh-button:hover {
    background: rgba(74, 211, 201, 0.08);
}


.owner-manager-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.owner-manager-empty {
    padding: 30px 15px;

    text-align: center;

    color: #668e8c;

    font-size: 13px;
}


/* This will be used when JS loads the companies */

.owner-company-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 13px 14px;

    border:
        1px solid rgba(71, 190, 183, 0.10);

    border-radius: 10px;

    background: rgba(0, 17, 23, 0.48);
}

.owner-company-name {
    color: #dffffc;

    font-size: 13px;
    font-weight: 700;
}

.owner-company-code {
    margin-top: 4px;

    color: #68aaa6;

    font-family: Consolas, monospace;
    font-size: 11px;
}

.owner-company-count {
    white-space: nowrap;

    padding: 5px 8px;

    border-radius: 20px;

    background: rgba(47, 205, 194, 0.08);
    color: #70d5ce;

    font-size: 10px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 720px) {

    .owner-manager-modal {
        padding: 12px;
    }

    .owner-manager-dialog {
        width: 100%;
        max-height: 94vh;
    }

    .owner-manager-body {
        grid-template-columns: 1fr;

        padding: 16px;

        max-height: calc(94vh - 120px);
    }

    .owner-manager-header {
        padding: 20px;
    }
}

.owner-company-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-login-button {
    padding: 7px 10px;
    border: 1px solid rgba(78, 211, 202, 0.16);
    border-radius: 7px;
    background: transparent;
    color: #79c9c4;
    font-size: 11px;
    cursor: pointer;
}

.owner-login-button:hover {
    background: rgba(74, 211, 201, 0.08);
}