/* Model Architecture Summary Styles */

.model-architecture-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.model-architecture-section h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.architecture-summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.architecture-header {
    margin-bottom: 25px;
}

.arch-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.arch-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.arch-stat i {
    font-size: 32px;
    color: #667eea;
}

.arch-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
}

.arch-stat .stat-label {
    display: block;
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Layers Table */
.layers-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.layers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.layers-table thead {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

.layers-table thead th {
    padding: 15px 20px;
    text-align: left;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
}

.layers-table thead th:first-child {
    border-top-left-radius: 8px;
}

.layers-table thead th:last-child {
    border-top-right-radius: 8px;
}

.layers-table tbody tr {
    background: white;
    transition: all 0.2s ease;
}

.layers-table tbody tr:nth-child(even) {
    background: #f7fafc;
}

.layers-table tbody tr:hover {
    background: #edf2f7;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.layers-table tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.layers-table tbody td:first-child {
    font-weight: 600;
    color: #2d3748;
}

.layers-table tbody td:first-child .layer-type {
    color: #667eea;
    font-weight: 400;
    font-size: 11px;
}

.layers-table tbody td:nth-child(2) {
    color: #4a5568;
    font-family: 'Monaco', monospace;
}

.layers-table tbody td:nth-child(3) {
    text-align: right;
    font-weight: 600;
    color: #2c5282;
}

/* Zero params styling */
.layers-table tbody tr.no-params td:nth-child(3) {
    color: #a0aec0;
    font-weight: 400;
}

/* Footer Summary */
.layers-table tfoot {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-weight: 700;
}

.layers-table tfoot td {
    padding: 15px 20px;
    border-top: 2px solid #cbd5e0;
    color: #2d3748;
}

.layers-table tfoot td:last-child {
    text-align: right;
    color: #2c5282;
    font-size: 16px;
}

/* Highlight specific layers */
.layers-table tbody tr.conv-layer {
    border-left: 3px solid #48bb78;
}

.layers-table tbody tr.dense-layer {
    border-left: 3px solid #ed8936;
}

.layers-table tbody tr.pooling-layer {
    border-left: 3px solid #4299e1;
}

.layers-table tbody tr.dropout-layer {
    border-left: 3px solid #9f7aea;
}

.layers-table tbody tr.flatten-layer {
    border-left: 3px solid #f6ad55;
}

/* Responsive */
@media (max-width: 768px) {
    .arch-stats {
        grid-template-columns: 1fr;
    }
    
    .arch-stat {
        justify-content: center;
    }
    
    .layers-table {
        font-size: 11px;
    }
    
    .layers-table th,
    .layers-table td {
        padding: 8px 12px;
    }
}

/* Animation for table rows */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.layers-table tbody tr {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.layers-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.layers-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.layers-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.layers-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.layers-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.layers-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.layers-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.layers-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.layers-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.layers-table tbody tr:nth-child(10) { animation-delay: 0.5s; }
