/* ===== DASHBOARD PREVIEW - 3D SCROLL EFFECT ===== */

.dashboard-preview {
    position: relative;
    padding: 80px 0 120px 0;
    background: #000000;
    overflow: hidden;
    perspective: 1000px;
}

.dashboard-preview::before {
    display: none;
}

.dashboard-preview::after {
    display: none;
}

.dashboard-preview-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    transform-style: preserve-3d;
    /* 3D Transform - Initial state: yukarı bakıyor (yatay, yukarı bakıyor) */
    transform: perspective(1000px) rotateX(45deg);
    /* Smooth transition for slower animation */
    transition: transform 0.4s ease-out;
    will-change: transform;
}

/* System Status Header */
.system-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000000;
    /* Removed backdrop-filter for better performance */
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff88;
}

.status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.last-update {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

/* System Metrics Bar */
.system-metrics-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px 20px;
    background: #000000;
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
    background: #000000;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-label {
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 45px;
    text-transform: uppercase;
}

.metric-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #ffc107, #ff6b6b);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

.metric-value {
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    min-width: 55px;
    text-align: right;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    gap: 15px;
    padding: 20px;
    background: #000000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform-origin: center top;
    transition: transform 0.3s ease-out;
}

/* Command Cards */
.command-card {
    background: #000000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    background: #000000;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header h3 i {
    color: #00ffff;
    font-size: 14px;
}

.header-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.header-link:hover {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.1);
}

/* Quick Actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn i {
    font-size: 20px;
    color: #00ffff;
}

.action-btn span {
    font-weight: 500;
}

/* Alert List */
.alert-list {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    padding: 12px;
    background: #000000;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    transition: all 0.2s ease;
}

.alert-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #ff9800;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alert-title {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.5;
}

.alert-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.alert-time {
    color: rgba(255, 255, 255, 0.5);
}

.alert-type {
    background: rgba(0, 173, 228, 0.2);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    color: #00ade4;
    border: 1px solid rgba(0, 173, 228, 0.3);
}

/* Docker Summary */
.docker-summary {
    display: flex;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.summary-value {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Container List */
.container-list {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.container-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #000000;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.container-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.container-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.container-status.running {
    background: #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.container-status.stopped {
    background: #ff6b6b;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.container-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.container-state {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* Ports Grid */
.ports-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 15px 20px;
}

.port-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s ease;
}

.port-card:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    transform: translateY(-2px);
}

.port-number {
    font-size: 14px;
    font-weight: 600;
    color: #00ffff;
    margin-bottom: 4px;
}

.port-count {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* Performance Metrics */
.performance-metrics {
    padding: 15px 20px;
}

.perf-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.perf-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 4px;
}

.perf-item:last-child {
    border-bottom: none;
}

.perf-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.perf-value {
    font-size: 12px;
    font-weight: 600;
    color: #00ffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .left-panel,
    .right-panel {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .command-card {
        min-width: 300px;
    }
    
    .system-metrics-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-preview-wrapper {
        transform: perspective(800px) rotateX(30deg);
    }
}

@media (max-width: 768px) {
    .dashboard-preview {
        padding: 60px 0 80px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .system-metrics-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px 15px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 15px;
    }
    
    .ports-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-preview-wrapper {
        transform: perspective(600px) rotateX(20deg);
    }
}

@media (max-width: 480px) {
    .system-metrics-bar {
        grid-template-columns: 1fr;
    }
    
    .ports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-preview-wrapper {
        transform: perspective(500px) rotateX(15deg);
    }
}
