/* Matrix Section */
.matrix-section {
    background: rgba(30, 30, 30, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(214, 51, 132, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(214, 51, 132, 0.3);
}

.matrix-section h3 {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.matrix-container {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matrix {
    border: 2px solid #d63384;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 4px 16px rgba(214, 51, 132, 0.3);
    table-layout: fixed;
}

.matrix-row {
    display: flex;
    width: 100%;
}

.matrix-cell {
    border: 1px solid rgba(214, 51, 132, 0.2);
    padding: 0.5rem;
    min-width: 80px;
    min-height: 40px;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 30, 0.8);
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.matrix-cell.header {
    background: linear-gradient(135deg, #d63384, #e91e63);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.matrix-cell.input {
    background: rgba(40, 40, 40, 0.8);
}

.matrix-cell input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff;
}

.matrix-cell input:focus {
    outline: none;
    background: rgba(214, 51, 132, 0.1);
}

.matrix-cell.readonly input {
    background-color: rgba(50, 50, 50, 0.8) !important;
    color: #aaa !important;
    cursor: not-allowed;
}

.matrix-cell.readonly input:focus {
    background-color: rgba(50, 50, 50, 0.8) !important;
    outline: none;
}

.matrix-cell.diagonal {
    background: rgba(214, 51, 132, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.matrix-icon {
    margin-right: 0.3rem;
    font-size: 1.1rem;
}

/* Responsive Design for Matrix */
@media (max-width: 768px) {
    .matrix-cell {
        min-width: 60px;
        width: 60px;
        min-height: 35px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .matrix-cell {
        min-width: 50px;
        width: 50px;
        min-height: 30px;
        font-size: 0.7rem;
    }
} 