/* Estilos para o Mockup Interativo do Sistema */

/* Container principal do mockup */
.mockup-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #1a1a1a;
    transition: all 0.3s ease;
}

.mockup-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
}

/* Browser frame */
.mockup-browser {
    background: #2d3748;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

/* Header do browser */
.mockup-header {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border-bottom: 1px solid #4a5568;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Dots do browser */
.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.mockup-dot.red {
    background: #fc5c65;
    box-shadow: 0 0 0 1px rgba(252, 92, 101, 0.5);
}

.mockup-dot.yellow {
    background: #fed330;
    box-shadow: 0 0 0 1px rgba(254, 211, 48, 0.5);
}

.mockup-dot.green {
    background: #26de81;
    box-shadow: 0 0 0 1px rgba(38, 222, 129, 0.5);
}

/* Área de endereço */
.mockup-address-bar {
    flex: 1;
    margin: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    color: #a0aec0;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
}

/* Ícones do header */
.mockup-header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #a0aec0;
}

.mockup-header-icons i {
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.mockup-header-icons i:hover {
    color: #ffffff;
    transform: scale(1.1);
}

/* Conteúdo do mockup */
.mockup-content {
    display: flex;
    height: 500px;
    background: #f7fafc;
}

/* Sidebar */
.mockup-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    border-right: 1px solid #4a5568;
    overflow-y: auto;
}

.mockup-menu {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.mockup-menu li {
    padding: 12px 20px;
    color: #a0aec0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    position: relative;
}

.mockup-menu li:hover {
    background: rgba(74, 85, 104, 0.5);
    color: #ffffff;
}

.mockup-menu li.active {
    background: rgba(66, 153, 225, 0.2);
    color: #4299e1;
    border-left: 3px solid #4299e1;
}

.mockup-menu li i {
    width: 16px;
    text-align: center;
}

/* Main content area */
.mockup-main {
    flex: 1;
    background: #f7fafc;
    overflow-y: auto;
    padding: 20px;
}

/* Dashboard styles */
.mockup-dashboard {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards do dashboard */
.mockup-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.mockup-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.mockup-card h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #2d3748;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Status cards */
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.status-item {
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid;
    transition: all 0.2s ease;
}

.status-item:hover {
    transform: scale(1.05);
}

.status-item.pending {
    background: #fef5e7;
    border-color: #f9e79f;
}

.status-item.pending .status-number {
    color: #f39c12;
}

.status-item.production {
    background: #e8f4fd;
    border-color: #bee5eb;
}

.status-item.production .status-number {
    color: #0984e3;
}

.status-item.completed {
    background: #e8f8f5;
    border-color: #a3e4d7;
}

.status-item.completed .status-number {
    color: #27ae60;
}

.status-number {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.status-label {
    font-size: 11px;
    font-weight: 500;
}

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.metric-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.metric-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 10px;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 500;
}

.metric-value {
    font-size: 14px;
    font-weight: bold;
    color: #2d3748;
}

.metric-value.positive {
    color: #27ae60;
}

/* Chart container */
.chart-container {
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.3), transparent);
}

/* Animações de interação */
.mockup-interactive {
    cursor: pointer;
    position: relative;
}

.mockup-interactive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(66, 153, 225, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.mockup-interactive:hover::after {
    width: 100%;
    height: 100%;
}

/* Animação do gráfico */
@keyframes drawLine {
    0% {
        stroke-dasharray: 0 1000;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dasharray: 1000 0;
        opacity: 1;
    }
}

/* Loading animation */
.mockup-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #4299e1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .mockup-container {
        max-width: 100%;
        margin: 0 10px;
    }
    
    .mockup-content {
        height: 400px;
    }
    
    .mockup-sidebar {
        width: 180px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Efeitos de hover avançados */
.mockup-menu li {
    position: relative;
    overflow: hidden;
}

.mockup-menu li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mockup-menu li:hover::before {
    left: 100%;
}

/* Tooltip */
.mockup-tooltip {
    position: absolute;
    background: #2d3748;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mockup-tooltip.show {
    opacity: 1;
}

/* Notificações */
.mockup-notifications {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.mockup-notification {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4299e1;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mockup-notification.success {
    border-left-color: #27ae60;
}

.mockup-notification.warning {
    border-left-color: #f39c12;
}

.mockup-notification.error {
    border-left-color: #e74c3c;
}
