/* Operate Centrally Visualization - The Command Center Reveal */
.operate-centrally {
    position: relative;
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    overflow: hidden;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.command-center-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Floating Windows */
.floating-window {
    position: absolute;
    width: 100px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    opacity: 1;
    filter: blur(0px);
}

/* Window Positions */
.window-social {
    top: 20%;
    left: 15%;
    transform: rotateX(10deg) rotateY(-15deg) rotateZ(5deg) translateZ(20px);
    background: linear-gradient(135deg, rgba(29, 12, 70, 0.2), rgba(29, 12, 70, 0.1));
    border-color: rgba(29, 12, 70, 0.3);
    z-index: 3;
}

.window-community {
    top: 30%;
    left: 75%;
    transform: rotateX(-5deg) rotateY(10deg) rotateZ(-3deg) translateZ(10px);
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.2), rgba(128, 128, 128, 0.1));
    border-color: rgba(128, 128, 128, 0.3);
    z-index: 2;
}

.window-onchain {
    top: 55%;
    left: 25%;
    transform: rotateX(-8deg) rotateY(-5deg) rotateZ(8deg) translateZ(30px);
    background: linear-gradient(135deg, rgba(202, 169, 104, 0.2), rgba(202, 169, 104, 0.1));
    border-color: rgba(202, 169, 104, 0.3);
    z-index: 4;
}

.window-offchain {
    top: 60%;
    left: 65%;
    transform: rotateX(12deg) rotateY(8deg) rotateZ(-5deg) translateZ(15px);
    background: linear-gradient(135deg, rgba(29, 12, 70, 0.2), rgba(29, 12, 70, 0.1));
    border-color: rgba(29, 12, 70, 0.3);
    z-index: 1;
}

/* Window Icons */
.window-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-social {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231d0c46"><path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"/></svg>');
}

.icon-community {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23808080"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 16c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm1-10H8v2h4v2H9v2h3v2l4-4-4-4z"/></svg>');
}

.icon-onchain {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23CAA968"><path d="M12 1.75l-6.25 10.5L12 16l6.25-3.75L12 1.75zM5.75 13.5L12 22.25l6.25-8.75L12 17.25l-6.25-3.75z"/></svg>');
}

.icon-offchain {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231d0c46"><path d="M13.75 6.75L19.25 12l-5.5 5.25M6.75 12h12.5"/></svg>');
}

/* Window Content */
.window-content {
    width: 100%;
    height: calc(100% - 32px);
    position: relative;
    overflow: hidden;
}

/* Social Feed */
.social-feed {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.feed-item {
    width: 100%;
    height: 8px;
    background: rgba(29, 12, 70, 0.2);
    margin-bottom: 6px;
    border-radius: 4px;
}

/* Community Chat */
.chat-lines {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.chat-line {
    width: 80%;
    height: 4px;
    background: rgba(128, 128, 128, 0.2);
    margin-bottom: 4px;
    border-radius: 2px;
}

.chat-line:nth-child(odd) {
    align-self: flex-start;
}

.chat-line:nth-child(even) {
    align-self: flex-end;
}

/* On-chain Data */
.transaction-table {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: scrollData 10s linear infinite;
}

.transaction-row {
    width: 100%;
    height: 6px;
    display: flex;
    margin-bottom: 4px;
}

.tx-cell {
    height: 100%;
    background: rgba(202, 169, 104, 0.2);
    border-radius: 2px;
}

.tx-cell-1 {
    width: 30%;
    margin-right: 5%;
}

.tx-cell-2 {
    width: 65%;
}

/* Off-chain Graph */
.line-graph {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.graph-line {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 90%;
    height: 2px;
    background: rgba(29, 12, 70, 0.3);
}

.graph-path {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 90%;
    height: 40%;
    background: transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, 
        rgba(29, 12, 70, 0.5) 0%, 
        rgba(29, 12, 70, 0.8) 20%, 
        rgba(29, 12, 70, 0.6) 40%, 
        rgba(29, 12, 70, 0.9) 60%, 
        rgba(29, 12, 70, 0.7) 80%, 
        rgba(29, 12, 70, 0.5) 100%
    ) 1;
}

/* Command Center Dashboard */
.command-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 160px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 15px 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translate(-50%, -50%) scale(0.8) translateZ(-50px);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.command-center.active {
    transform: translate(-50%, -50%) scale(1) translateZ(50px);
    opacity: 1;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.dashboard-title {
    font-size: 16px;
    color: #1d0c46;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cryptique-logo-container {
    width: 28px;
    height: 28px;
}

.cryptique-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Dashboard Widgets */
.dashboard-widgets {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    height: calc(100% - 46px);
    overflow-x: hidden;
}

.widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: 25%;
    box-sizing: border-box;
}

.widget-title {
    font-size: 8px;
    color: #1d0c46;
    margin-bottom: 6px;
    opacity: 0.7;
    letter-spacing: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.widget-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-value {
    font-size: 18px;
    font-weight: bold;
    color: #1d0c46;
    white-space: nowrap;
}

.widget-chart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.chart-bar {
    width: 5px;
    background: linear-gradient(to top, rgba(29, 12, 70, 0.8), rgba(29, 12, 70, 0.3));
    border-radius: 2px 2px 0 0;
    margin: 0 3px;
}

.bar-1 { height: 40%; }
.bar-2 { height: 65%; }
.bar-3 { height: 50%; }
.bar-4 { height: 80%; }
.bar-5 { height: 60%; }

/* Animation States */
.floating-window.background {
    opacity: 0.2;
    filter: blur(2px);
}

.window-social.background {
    top: 15%;
    left: 10%;
    transform: rotateX(0) rotateY(0) rotateZ(0) translateZ(-50px);
}

.window-community.background {
    top: 15%;
    right: 10%;
    left: auto;
    transform: rotateX(0) rotateY(0) rotateZ(0) translateZ(-50px);
}

.window-onchain.background {
    top: 65%;
    left: 10%;
    transform: rotateX(0) rotateY(0) rotateZ(0) translateZ(-50px);
}

.window-offchain.background {
    top: 65%;
    right: 10%;
    left: auto;
    transform: rotateX(0) rotateY(0) rotateZ(0) translateZ(-50px);
}

/* Animation Keyframes */
@keyframes scrollData {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .operate-centrally {
        height: 240px;
        padding: 0.8rem;
    }
    
    .floating-window {
        width: 80px;
        height: 100px;
        padding: 8px;
    }
    
    .window-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }
    
    .command-center {
        width: 260px;
        height: 140px;
        padding: 12px 14px;
    }
    
    .dashboard-header {
        margin-bottom: 14px;
    }
    
    .dashboard-title {
        font-size: 14px;
    }
    
    .cryptique-logo-container {
        width: 22px;
        height: 22px;
    }
    
    .dashboard-widgets {
        gap: 8px;
        height: calc(100% - 36px);
    }
    
    .widget {
        padding: 6px 4px;
        width: 25%;
    }
    
    .widget-title {
        font-size: 7px;
        margin-bottom: 5px;
    }
    
    .widget-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .operate-centrally {
        height: 220px;
        padding: 0.7rem;
    }
    
    .floating-window {
        width: 70px;
        height: 90px;
    }
    
    .window-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 8px;
    }
    
    .command-center {
        width: 220px;
        height: 110px;
        padding: 8px 10px;
    }
    
    .dashboard-header {
        margin-bottom: 8px;
    }
    
    .dashboard-title {
        font-size: 11px;
    }
    
    .cryptique-logo-container {
        width: 16px;
        height: 16px;
    }
    
    .dashboard-widgets {
        gap: 5px;
        height: calc(100% - 24px);
    }
    
    .widget {
        padding: 4px 3px;
        width: 25%;
    }
    
    .widget-title {
        font-size: 6px;
        margin-bottom: 2px;
    }
    
    .widget-value {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .operate-centrally {
        height: 200px;
        padding: 0.6rem;
    }
    
    .floating-window {
        width: 60px;
        height: 80px;
    }
    
    .window-icon {
        width: 18px;
        height: 18px;
        margin-bottom: 6px;
    }
    
    .command-center {
        width: 200px;
        height: 100px;
        padding: 7px 8px;
    }
    
    .dashboard-header {
        margin-bottom: 6px;
    }
    
    .dashboard-title {
        font-size: 10px;
    }
    
    .cryptique-logo-container {
        width: 14px;
        height: 14px;
    }
    
    .dashboard-widgets {
        gap: 4px;
        height: calc(100% - 20px);
    }
    
    .widget {
        padding: 3px 2px;
        width: 25%;
    }
    
    .widget-title {
        font-size: 5px;
        margin-bottom: 1px;
    }
    
    .widget-value {
        font-size: 11px;
    }
}